220 29137 <nur234$m5a$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Bo Persson <bop@gmb.dk>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Removing trivial undefined behaviour
Date: Wed, 26 Oct 2016 22:01:44 +0200
Lines: 32
Approved: news@gmane.org
Message-ID: <nur234$m5a$1@blaine.gmane.org>
References: <35daf87a-bf1d-46de-b16c-c2965fbadc8f@isocpp.org>
 <9e242562-aba1-4f8d-8e0a-b2de34f6a10b@isocpp.org>
 <d24d9d41-d5ba-47ed-8e98-915f84063a92@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: blaine.gmane.org 1477512164 19456 195.159.176.226 (26 Oct 2016 20:02:44 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 26 Oct 2016 20:02:44 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.4.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCZ6RLW3UIKBBSMXYTAAKGQEXLWP22Q@isocpp.org Wed Oct 26 22:02:40 2016
Return-path: <std-proposals+bncBCZ6RLW3UIKBBSMXYTAAKGQEXLWP22Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCZ6RLW3UIKBBSMXYTAAKGQEXLWP22Q@isocpp.org>)
	id 1bzUOt-0001N1-HF
	for gclcip-std-proposals@m.gmane.org; Wed, 26 Oct 2016 22:02:15 +0200
Original-Received: by mail-wm0-f72.google.com with SMTP id b80sf18444912wme.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 26 Oct 2016 13:02:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :user-agent:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=GCFKe+vn0zpgPIu7W6/IeXThJSyHvul2e+FklwhPJnA=;
        b=b0wOER5hHxwn57ekD32mPwpQNIy05GY1mmavFJV9AxYp8dSHhJ8hcGrfl0ib0/epXJ
         5CfZLd1vxh/eAJSrK1Lv0gNoO/WVQmUBCoRALfs7mTBuwJG0P6N6tTC3qt3PiFSXeA4a
         /xAaB7D6jGCc8/P2S3FsucxIwLWcD2lrEVzCnSUgFdr1tbbLSTySTNeYtxR8N6aX0neS
         DTPbXblRlmbzYHqQsTN/h/13wpNACnuuCFKe5JeY02AppaOIpM/XOIVvoD3yGyuecPUa
         aKSXt7kFTNJ0siwjsC2lpNYooh65wQYrKXqI2JUsEMjabLOPwmE4yK6r0UY1J/ixmmee
         jNVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=GCFKe+vn0zpgPIu7W6/IeXThJSyHvul2e+FklwhPJnA=;
        b=PRY/X51plOtL2gTBk6fQRxMXyR3KRBTNllNS6X/Y4vka/kVVD7ZBO5f9KLGgUohAQ8
         J6IFcoJLfIaC1PzUgfGR7rSmf9fTaKU5YfYaq2huyc6d++Qi5JZMzwOZIpr70dV1zme3
         Czzu3+ocEKgvA2wVpSHePP74B69y38Rm3Uco4KoO3NxJtFDvPgal/olvb4M4atMPrNf+
         d7v98+pRrUFdxT5Wmsm5IHVowZ2hFoVjn+wPlaOziqK2fpForYgkITiSw+VmhTynG0wB
         sYJzv1aYASJWgezn/Jn/EoziAeU0+XfzIwhvVi21Km4MHWCX2D+6FDZrlpnVw/eb7YCk
         DS5w==
X-Gm-Message-State: ABUngvfZR8HqJHKZNQlIJP6/i+913tJA1q6TlezwxEtKBnk5rGeOtwiTYvZHnajjXH/1jA==
X-Received: by 10.194.82.170 with SMTP id j10mr364730wjy.14.1477512138234;
        Wed, 26 Oct 2016 13:02:18 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.135.4 with SMTP id j4ls201005lfd.51.gmail; Wed, 26 Oct 2016
 13:02:16 -0700 (PDT)
X-Received: by 10.25.37.78 with SMTP id l75mr3007694lfl.41.1477512136962;
        Wed, 26 Oct 2016 13:02:16 -0700 (PDT)
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id s189si2553553lfs.319.2016.10.26.13.02.16
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 26 Oct 2016 13:02:16 -0700 (PDT)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1bzUOd-00089L-Ru
	for std-proposals@isocpp.org; Wed, 26 Oct 2016 22:01:59 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 25
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <d24d9d41-d5ba-47ed-8e98-915f84063a92@isocpp.org>
X-Original-Sender: gclcip-std-proposals@m.gmane.org
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:29137
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29137>

On 2016-10-26 09:20, Hans Guijt wrote:
>
> On Wednesday, October 26, 2016 at 9:11:26 AM UTC+2, T. C. wrote:
>
>
>     Because they are meant to be used as isdigit((unsigned char) c).
>
>
> Great, in that case I'm sure there is no opposition to changing the
> signature to reflect this requirement? It's a much cleaner solution than
> requiring a cast in every invocation, after all.
>

This goes all the way back to "implicit int" in K&R C, where a call f(c) 
to an undeclared function f was assumed to implicitly declare "int f(int)".

If that wasn't fixable in the 1980's, because of expected code breakage, 
it is WAY too late to change that now.


     Bo Persson





-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/nur234%24m5a%241%40blaine.gmane.org.

.
