220 29089 <CAOHCbiu0Hd7LsMkKGcvxvo7h3TJzjZAuXPWxNT0WuESUfrFCaw@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Removing trivial undefined behaviour
Date: Wed, 26 Oct 2016 09:19:11 -0400
Lines: 99
Approved: news@gmane.org
Message-ID: <CAOHCbiu0Hd7LsMkKGcvxvo7h3TJzjZAuXPWxNT0WuESUfrFCaw@mail.gmail.com>
References: <35daf87a-bf1d-46de-b16c-c2965fbadc8f@isocpp.org>
 <9e242562-aba1-4f8d-8e0a-b2de34f6a10b@isocpp.org> <d24d9d41-d5ba-47ed-8e98-915f84063a92@isocpp.org>
 <c976d139-ae31-4756-96a6-30a69d81f14d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e013d1d9c8bef1a053fc4788e
X-Trace: blaine.gmane.org 1477487969 4880 195.159.176.226 (26 Oct 2016 13:19:29 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 26 Oct 2016 13:19:29 +0000 (UTC)
To: Standard Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUZ5QWKNQINDWWCYACRUBEMMD7OI@isocpp.org Wed Oct 26 15:19:24 2016
Return-path: <std-proposals+bncBCUZ5QWKNQINDWWCYACRUBEMMD7OI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f70.google.com ([74.125.82.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUZ5QWKNQINDWWCYACRUBEMMD7OI@isocpp.org>)
	id 1bzO6p-0007Vd-TS
	for gclcip-std-proposals@m.gmane.org; Wed, 26 Oct 2016 15:19:11 +0200
Original-Received: by mail-wm0-f70.google.com with SMTP id q6sf14431659wmg.15
        for <gclcip-std-proposals@m.gmane.org>; Wed, 26 Oct 2016 06:19:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject: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=HpyW1oDBMQCQrl7UqDgB3bSMoyRFm2p5SzdowlrEwuo=;
        b=kenUpce8Viw1HIZyY0TgnAl/h/Ixr9utgrGlWdhIA53VOKhvcyCk624L2taoaUyGXv
         HiXgC4f60K9tEKBmSKISnI83ulXY5mRHoswl3a+uycwOVFI3Os9NUE17L8MUVbr1L14+
         NFRAR9uv3OnOEmurOvwmjlxX3uxtTvjXwC7xV06IR68P8xx/MaXBM78KkpP5dqmFpK1c
         Pmb+2h/hZCqH3lD2vI2snZPir3oeeVpcZmnxgcH9fIKDUj6RzPQIHesz3MgNdJ9Eh50a
         umyDIbqnACmwIZrTcwIiuEEdmsdmYCO5sxyaFWLzezFTdmQuUbRLKatt4RRy8Laj8Ehp
         p2ug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject: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=HpyW1oDBMQCQrl7UqDgB3bSMoyRFm2p5SzdowlrEwuo=;
        b=eaLRSxpL37Z50fNrgRkU0FKigZuCa3AjdrjDQd6cMVbq0bCHKdrgc2IRGhmRRI+Vu1
         u6PEEQDNxeBMJuz59D5crv1zhIuQ366g1fN0fL0A19punFiD1hwhs8+Ln3oUYtquR1WH
         SQbwwvVYmQ8+BKZuAwAwl9IBCaCFtTN7hxikxNhmsc5L1+KLRDXeUsolUMkWq2nH4VFe
         r7Efyb1gmMf3Ye3X5Wx7KJOkVSKCpFqgYYGhH21vPd3ACPAu8yiHoj41VsfrX+ugxCIj
         tUDGC5NuXQowIiPXlxw6wa/jMogie1pUsB3GhuVllildCWaTsJLtwc6J0XwEvb4TIt+V
         7UqA==
X-Gm-Message-State: ABUngveYzEuEEqAkUVLHCwc8MJG3BcWMmdjdBAf1ixYtWpEpp9n6kFlt/ZjhqmbNLdf/Yw==
X-Received: by 10.28.31.129 with SMTP id f123mr228865wmf.17.1477487954526;
        Wed, 26 Oct 2016 06:19:14 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.37.147 with SMTP id l141ls120533lfl.19.gmail; Wed, 26 Oct
 2016 06:19:13 -0700 (PDT)
X-Received: by 10.25.217.210 with SMTP id s79mr1558690lfi.50.1477487952969;
        Wed, 26 Oct 2016 06:19:12 -0700 (PDT)
Original-Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com. [2a00:1450:400c:c09::234])
        by mx.google.com with ESMTPS id s7si1187155lja.28.2016.10.26.06.19.12
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 26 Oct 2016 06:19:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 2a00:1450:400c:c09::234 as permitted sender) client-ip=2a00:1450:400c:c09::234;
Original-Received: by mail-wm0-x234.google.com with SMTP id d128so84976464wmf.1
        for <std-proposals@isocpp.org>; Wed, 26 Oct 2016 06:19:12 -0700 (PDT)
X-Received: by 10.194.177.230 with SMTP id ct6mr2269596wjc.145.1477487952128;
 Wed, 26 Oct 2016 06:19:12 -0700 (PDT)
Original-Received: by 10.28.105.156 with HTTP; Wed, 26 Oct 2016 06:19:11 -0700 (PDT)
In-Reply-To: <c976d139-ae31-4756-96a6-30a69d81f14d@isocpp.org>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of tvaneerd@gmail.com
 designates 2a00:1450:400c:c09::234 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
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:29089
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29089>

--089e013d1d9c8bef1a053fc4788e
Content-Type: text/plain; charset=UTF-8

On Wed, Oct 26, 2016 at 4:28 AM, T. C. <rs2740@gmail.com> wrote:

>
>
> On Wednesday, October 26, 2016 at 3:20:55 AM UTC-4, 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.
>>
>>
>>
> The reason they take int is because they also accept EOF. That's C's
> style, for better or worse.
>
> In any event, there's no way in hell C++ is going to change this. It's a
> massive C compatibility break.
>

We could maybe overload the function:

int isdigit(int c);
bool isdigit(char c);

No idea if that is a good idea.

>
> --
Be seeing you,
Tony

-- 
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/CAOHCbiu0Hd7LsMkKGcvxvo7h3TJzjZAuXPWxNT0WuESUfrFCaw%40mail.gmail.com.

--089e013d1d9c8bef1a053fc4788e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Wed, Oct 26, 2016 at 4:28 AM, T. C. <span dir=3D"ltr">&lt;<a href=3D=
"mailto:rs2740@gmail.com" target=3D"_blank">rs2740@gmail.com</a>&gt;</span>=
 wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
der-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><span class=3D""=
><br><br>On Wednesday, October 26, 2016 at 3:20:55 AM UTC-4, Hans Guijt wro=
te:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><br>On Wednesda=
y, October 26, 2016 at 9:11:26 AM UTC+2, T. C. wrote:<blockquote class=3D"g=
mail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;=
padding-left:1ex"><div dir=3D"ltr"><div><br></div><div>Because they are mea=
nt to be used as isdigit((unsigned char) c).</div></div></blockquote><div>=
=C2=A0</div><div>Great, in that case I&#39;m sure there is no opposition to=
 changing the signature to reflect this requirement? It&#39;s a much cleane=
r solution than requiring a cast in every invocation, after all.<br><br><br=
></div></div></blockquote><div><br></div></span><div>The reason they take i=
nt is because they also accept EOF. That&#39;s C&#39;s style, for better or=
 worse.</div><div><br></div><div>In any event, there&#39;s no way in hell C=
++ is going to change this. It&#39;s a massive C compatibility break.</div>=
</div></blockquote><div><br></div><div>We could maybe overload the function=
:<br><br></div><div>int isdigit(int c);<br></div><div>bool isdigit(char c);=
<br><br></div><div>No idea if that is a good idea.<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex"><span class=3D"">

<p></p></span><br></blockquote></div>-- <br><div class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Be seeing you,<br>=
</div>Tony<br></div></div>
</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAOHCbiu0Hd7LsMkKGcvxvo7h3TJzjZAuXPWx=
NT0WuESUfrFCaw%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">htt=
ps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAOHCbiu0Hd7LsMkK=
Gcvxvo7h3TJzjZAuXPWxNT0WuESUfrFCaw%40mail.gmail.com</a>.<br />

--089e013d1d9c8bef1a053fc4788e--

.
