Topic: N3417: Proposal for Unbounded-Precision Integer Types
Author: Helmut Zeisel <zei2011@liwest.at>
Date: Tue, 16 Apr 2013 12:41:18 -0700 (PDT)
Raw View
What should be the result of unsigned_integer(-1) ?
Helmut
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Martin Shobe <martin.shobe@travelport.com>
Date: Thu, 18 Apr 2013 10:09:18 CST
Raw View
On 4/16/2013 2:41 PM, Helmut Zeisel wrote:
> What should be the result of unsigned_integer(-1) ?
>
> Helmut
>
>
The desire to remove unsigned_integer from the proposal. :)
While I can appreciate the desire for symmetry with the limited
precision integers, that symmetry is going to be broken with unlimited
precision integers. I personally would rather see unsigned_integer be a
special case of a more general bounded integer proposal. One where the
programmer could specify an arbitrary upper and lower bound.
Martin Shobe
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Pete Becker <pete@versatilecoding.com>
Date: Thu, 18 Apr 2013 10:08:30 CST
Raw View
On 2013-04-16 19:41:18 +0000, Helmut Zeisel said:
> What should be the result of unsigned_integer(-1) ?
>
It's an error.
--
Pete
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: rkadeFR <contact@rkade.fr>
Date: Fri, 19 Apr 2013 08:12:45 -0700 (PDT)
Raw View
On 18/04/2013 18:08, Pete Becker wrote:
>
>
> On 2013-04-16 19:41:18 +0000, Helmut Zeisel said:
>
>> What should be the result of unsigned_integer(-1) ?
>>
>
> It's an error.
>
Is it Undefined behavior ?
-- rkadeFR
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Pete Becker <pete@versatilecoding.com>
Date: Sat, 20 Apr 2013 05:19:15 -0700 (PDT)
Raw View
On 2013-04-18 10:08:30 +0000, Pete Becker said:
> On 2013-04-16 19:41:18 +0000, Helmut Zeisel said:
>
>> What should be the result of unsigned_integer(-1) ?
>>
>
> It's an error.
Well, no, no longer. It's gone, replaced by the bits class, a dynamic bit set.
--
Pete
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]