220 29168 <1866299.zrCQmoYHp2@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Removing trivial undefined behaviour
Date: Thu, 27 Oct 2016 14:37:00 -0700
Lines: 22
Approved: news@gmane.org
Message-ID: <1866299.zrCQmoYHp2@tjmaciei-mobl1>
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
X-Trace: blaine.gmane.org 1477604239 15041 195.159.176.226 (27 Oct 2016 21:37:19 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 27 Oct 2016 21:37:19 +0000 (UTC)
User-Agent: KMail/5.3.2 (Linux/4.8.3-1-default; KDE/5.26.0; x86_64; ; )
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB77GZHAAKGQERZ2OMII@isocpp.org Thu Oct 27 23:37:15 2016
Return-path: <std-proposals+bncBCB4TK757YBRB77GZHAAKGQERZ2OMII@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f69.google.com ([74.125.82.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB77GZHAAKGQERZ2OMII@isocpp.org>)
	id 1bzsM9-0001fv-9e
	for gclcip-std-proposals@m.gmane.org; Thu, 27 Oct 2016 23:37:01 +0200
Original-Received: by mail-wm0-f69.google.com with SMTP id p190sf15011363wmp.3
        for <gclcip-std-proposals@m.gmane.org>; Thu, 27 Oct 2016 14:37:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :mime-version: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=vVScxwnFLLwQuSwtOVGgWKS+uWecUjj3+ZUr9iVwjt4=;
        b=tWMv/9gM1+1xH6qrqwpWcLIXlygA/eUmNmgfuBfcRk0Qm2ZyRMZlsNpOcaT5G/fq0h
         7ZltMZfoD5MqggtG1BuGOZ8ybKvxNyvqwIeAI9dhEyt6K+32jpZ9TzzYpmV8ocZBoWTR
         DgQCmf/420Ls9EImeZP1WERVxLRxyKLQEgyRVKcp5Wysnlmw+B30WdjIm4qEcTDEN1HY
         ztEiRDRHF9z+kVtddo1dqk8EhgQcBJRhnBuA4iM+7Dnz4cYLhC62z5JJoj/+h+ogUtOk
         RxIrVuAPeTHAU5T0mvJPklZsjA9SL6VO28x7FoZCr3T1bSFAU0ZzbpNKFKMm7f3efprX
         /6yA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version: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=vVScxwnFLLwQuSwtOVGgWKS+uWecUjj3+ZUr9iVwjt4=;
        b=NTW5IbkOYvXIp3ksRMc9K0Ana6BW89jYw9s5Q+Qjv3tSW14VMqTzViMvnOPWOC+7dF
         O3U3FrmshpZT8ZwOvrP4o8uw+1AjNJyrS56YLPO2byHt15tsSQmdmJjekQq3064BRuWM
         V1n1y0h/3499m3gDWvJVP/izW8HPhuZAX3TeVpIPh9A/4XAqK46PX3CxnlDT/uKfWCPe
         dOT7bKz3VF51roRABdk3PIkEZ2AZZP0/O65uMqFdUPnuh8oXVmKyws4VVnB0hf2Y7WqA
         Rn6qMIeu+Skqjn9LxLYboM0xT4ziy1cNMU82Bl1COL7eCWDlFV1+Flh6F8FuvUMcx9uy
         77eQ==
X-Gm-Message-State: ABUngvehwt4kJ9DNEZgtLIaw8lNNBPC6hUjlzWaWiJxOHLawLXuuk2VeeAwNoyZlIPkBLg==
X-Received: by 10.28.207.13 with SMTP id f13mr44905wmg.1.1477604224001;
        Thu, 27 Oct 2016 14:37:04 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.134.1 with SMTP id i1ls105095wmd.12.gmail; Thu, 27 Oct 2016
 14:37:03 -0700 (PDT)
X-Received: by 10.194.102.165 with SMTP id fp5mr8436606wjb.134.1477604223055;
        Thu, 27 Oct 2016 14:37:03 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id o8si5786855wme.21.2016.10.27.14.37.02
        for <std-proposals@isocpp.org>;
        Thu, 27 Oct 2016 14:37:02 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (jfdmzpr02-ext.jf.intel.com [134.134.137.71])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 9A47A11B3A0
	for <std-proposals@isocpp.org>; Thu, 27 Oct 2016 14:37:02 -0700 (PDT)
In-Reply-To: <d24d9d41-d5ba-47ed-8e98-915f84063a92@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.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:29168
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29168>

On quarta-feira, 26 de outubro de 2016 00:20:54 PDT 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 ctype functions are required to work for EOF too. So you can't use 
unsigned char, as you need one more representable value besides all possible 
unsigned char values.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/1866299.zrCQmoYHp2%40tjmaciei-mobl1.

.
