220 9106 <2142577.vhDTrNQqlS@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: String to T conversions - getting it right
 this time
Date: Wed, 05 Feb 2014 09:55:38 -0800
Lines: 47
Approved: news@gmane.org
Message-ID: <2142577.vhDTrNQqlS@tjmaciei-mobl4>
References: <097fb6c8-56f9-433e-a2f0-8c0f69609bf0@isocpp.org> <1527515.3ShWxD5aes@tjmaciei-mobl4> <f5e5cdf4-6ff4-4f78-9b52-13d42491ac72@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1391622935 22852 80.91.229.3 (5 Feb 2014 17:55:35 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 5 Feb 2014 17:55:35 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBHXWZGLQKGQEUW2YY6I@isocpp.org Wed Feb 05 18:55:44 2014
Return-path: <std-proposals+bncBCB4TK757YBRBHXWZGLQKGQEUW2YY6I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBHXWZGLQKGQEUW2YY6I@isocpp.org>)
	id 1WB6hM-0002rL-7Z
	for gclcip-std-proposals@m.gmane.org; Wed, 05 Feb 2014 18:55:44 +0100
Original-Received: by mail-ob0-f198.google.com with SMTP id wp4sf3614313obc.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 05 Feb 2014 09:55:43 -0800 (PST)
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:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-transfer-encoding:content-type;
        bh=WiGMPTkz5wafKkQpOxUqhyn+1ypmtKCO+XZgb+EVR4E=;
        b=d0GGF7E6BPp8nTF505DWxMPDhFoHAritXwYhn/SMuuT/UlK0j0bOOR84HW0iU+hEFC
         zU4v7Tv355PW2ohURfAU+wwla2CL/JDd5u5qiDPAJifzACs/N9IHFd+YXYp0vZt+1/RR
         Z2HUTr9cPAT3kyYZ5iU5IRCq/w4CRzLi0Kv4OUVC+Mb5YP8/ByWyJHFD1ispZzLh5HqF
         BjsCfNkjfhZ08C1WVj7q0s9l4TJXH2UvN8ppFHpXegIzNslNRDA2nC8+xJ4To3QjoIjx
         mX7l6lLBfqJez9zKh2c09MHxXdxJI8Bvf65eZeb94QQo5Piu/sQleUvezOxt0U3+1/rP
         +C1 
X-Gm-Message-State: ALoCoQlzE/tAjGJGz6OEin5qhVIGiW683QlnIwnpBRq5p67B/3gEVBQ3JCM1AUXPLyevE5BJiFx3
X-Received: by 10.182.186.105 with SMTP id fj9mr1123378obc.5.1391622943264;
        Wed, 05 Feb 2014 09:55:43 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.36.7 with SMTP id o7ls220172qgo.15.gmail; Wed, 05 Feb 2014
 09:55:42 -0800 (PST)
X-Received: by 10.224.122.20 with SMTP id j20mr5001381qar.82.1391622942606;
        Wed, 05 Feb 2014 09:55:42 -0800 (PST)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id v8si21162141qab.49.2014.02.05.09.55.42
        for <std-proposals@isocpp.org>;
        Wed, 05 Feb 2014 09:55:42 -0800 (PST)
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-mobl4.localnet (unknown [IPv6:2601:7:1c80:1ec:cd3d:b144:2234:df38])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 63AA811A594
	for <std-proposals@isocpp.org>; Wed,  5 Feb 2014 09:55:41 -0800 (PST)
User-Agent: KMail/4.11.4 (Linux/3.11.6-4-desktop; KDE/4.11.4; x86_64; ; )
In-Reply-To: <f5e5cdf4-6ff4-4f78-9b52-13d42491ac72@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.mail=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: <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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:9106
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9106>

Em qua 05 fev 2014, =E0s 09:00:53, Matthew Fioravante escreveu:
> > Don't deviate from strtoll.=20
> >=20
> > radix =3D 0 implies prefixes 0 and 0x are recognised. If the library is=
=20
> > updated=20
> > with 0b prefix for binaries, then that too.=20
>=20
> Why wait for the library, 0b prefix is useful and should be supported=20
> anyway.

Because you shouldn't deviate from strtoll. The support should be done firs=
t in=20
strtoll and then in whatever you're proposing. Yes, I know I'm asking you t=
o=20
convince ISO C and the POSIX standard groups.

The reason being that most C++ standard library implementations will delega=
te=20
to strtoll or similar functions (like we do in Qt). Asking for functionalit=
y=20
different from strtoll means asking for more complexity from library=20
developers.

Alternatively, make sure that strtoll could be implemented on top of a plai=
n C=20
library routine that is the backend for your new function. That would solve=
=20
the problem of complexity.

--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

--=20

---=20
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 e=
mail 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-proposa=
ls/.

.
