220 18657 <CAA7U3HObR-SQKmybAq6KbjQZy_z+fFzGmPMXw0veCtSvB485sw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Parsing Numbers
Date: Thu, 18 Jun 2015 09:27:24 +0200
Lines: 29
Approved: news@gmane.org
Message-ID: <CAA7U3HObR-SQKmybAq6KbjQZy_z+fFzGmPMXw0veCtSvB485sw@mail.gmail.com>
References: <eb5c19d6-074f-4ee4-8e2d-6d92349eb4be@isocpp.org>
	<b7762ff7-17e9-4ca8-a261-dd0c9c507d34@isocpp.org>
	<8c6a8503-3958-4244-9d0f-33b567250056@isocpp.org>
	<CAA7U3HPyaotZ=B9xg20C+H59O_kGqVXPnXn2UubJ9HC__Hz3TQ@mail.gmail.com>
	<ce76204c-916d-4de4-a8cb-4470b8d1031d@isocpp.org>
	<20150612225334.GA31968@noemi.bahnhof.se>
	<ceb6f450-d84b-40c9-8c3e-931b7e1518c1@isocpp.org>
	<557C3B5D.4070307@gmail.com>
	<CAA7U3HNYP2CZACcLpQikg_wBNX=WKhmGHjTV1OdC7TkQHNq5dg@mail.gmail.com>
	<557EE838.8030605@gmail.com>
	<CAA7U3HNLcO70KxDtTZnMGqtM-F6-PpG6jygzM=XWMpWD=hLXeg@mail.gmail.com>
	<557F93A8.3060708@gmail.com>
	<CAA7U3HPJSgw3Ekh3uDPvkQYhsMmnj9pTXk_rj2tic9j4Ae_0oQ@mail.gmail.com>
	<d3567976-4329-4f3f-9b3c-af11fd480e8c@isocpp.org>
	<558184CA.7000708@gmail.com>
	<e6e87673-6c44-4bec-af63-3951ee7d291e@isocpp.org>
	<CAA7U3HNZbFAGaR3tvit_VpemwVFDfFSQze6V8BLZV8X336_Jcw@mail.gmail.com>
	<5581F980.1000000@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1434612455 28155 80.91.229.3 (18 Jun 2015 07:27:35 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 18 Jun 2015 07:27:35 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5NB45SSABBBXPFRGWAKGQE2BP4SRY@isocpp.org Thu Jun 18 09:27:31 2015
Return-path: <std-proposals+bncBC5NB45SSABBBXPFRGWAKGQE2BP4SRY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f197.google.com ([209.85.212.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5NB45SSABBBXPFRGWAKGQE2BP4SRY@isocpp.org>)
	id 1Z5UER-0006Aa-J6
	for gclcip-std-proposals@m.gmane.org; Thu, 18 Jun 2015 09:27:27 +0200
Original-Received: by wimx15 with SMTP id x15sf1340418wim.1
        for <gclcip-std-proposals@m.gmane.org>; Thu, 18 Jun 2015 00:27:25 -0700 (PDT)
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:date
         :message-id:subject:from:to:content-type: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=zD9/Vz8wMgln2vWavV17HmxLJiF7Oc0f7XA3uhShZFI=;
        b=LHlQp/TLycCB1u2NRRAc0JBWwEpnxVzV154OYBXkoQ4ZyR3BRaxHfNJsOt4mirh/RO
         RAG0zb9doTrLkEcEPw/Oy1R7+uOu615DBtgQwCCc/dyvf62BPSBSFAS22TGnYzH3v5Fv
         6ikJNcO0EjGQsEN16HJDDuvpTBTRY5tFFSriXawkTPLgwqr9st5PnnigtNfK2JQQSzjc
         1ekHkXLlXcu+ZDFMqJc64HSpY/6Vlh090IeaP0DY/fRvrj1xVff33/HO0hBgn7LDgxpw
         Qq77mHZ9suf1ruIDHg5VHteHI0hldfC4BWfsuR38b2uSfjKES2F0U7DTGiVRjSSxVgWu
         GTSg==
X-Gm-Message-State: ALoCoQkczbAUG3KZZtcorVKU2Ip6d7urrLLT7GSSv2Jp2UCImTi5ysS7U38p6bQRQaOiHV3Q3rqc
X-Received: by 10.112.14.101 with SMTP id o5mr9002779lbc.3.1434612445674;
        Thu, 18 Jun 2015 00:27:25 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.91.77 with SMTP id cc13ls997604wib.36.canary; Thu, 18 Jun
 2015 00:27:24 -0700 (PDT)
X-Received: by 10.194.176.165 with SMTP id cj5mr13333057wjc.72.1434612444672;
        Thu, 18 Jun 2015 00:27:24 -0700 (PDT)
Original-Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com. [2a00:1450:400c:c05::229])
        by mx.google.com with ESMTPS id ga6si13766455wib.68.2015.06.18.00.27.24
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 18 Jun 2015 00:27:24 -0700 (PDT)
Received-SPF: pass (google.com: domain of olafvdspek@gmail.com designates 2a00:1450:400c:c05::229 as permitted sender) client-ip=2a00:1450:400c:c05::229;
Original-Received: by wicnd19 with SMTP id nd19so51160938wic.1
        for <std-proposals@isocpp.org>; Thu, 18 Jun 2015 00:27:24 -0700 (PDT)
X-Received: by 10.194.5.4 with SMTP id o4mr3125822wjo.51.1434612444346; Thu,
 18 Jun 2015 00:27:24 -0700 (PDT)
Original-Received: by 10.28.102.84 with HTTP; Thu, 18 Jun 2015 00:27:24 -0700 (PDT)
In-Reply-To: <5581F980.1000000@gmail.com>
X-Original-Sender: olafvdspek@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of olafvdspek@gmail.com designates 2a00:1450:400c:c05::229 as
 permitted sender) smtp.mail=olafvdspek@gmail.com;       dkim=pass
 header.i=@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-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:18657
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18657>

2015-06-18 0:49 GMT+02:00 Miro Knejp <miro.knejp@gmail.com>:
>> Was there a proposal to accept 0b for strtol?
>> When base = 8, the leading 0 in 0777 doesn't have to be a prefix per se.
>
> If an explicit base is specified any prefix parsing should be disabled.

Sounds good but would be incompatible with strtol.

>> Returning out-of-range for -1 when parsing an unsigned type seems like
>> a no-brainer.
>
> I'd argue that in that case the parsing of unsigned types should fail on the
> minus sign the same way it would for any other invalid character without
> consuming any input.

Does it matter where it fails?


-- 
Olaf

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
