Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #613 > unrolled thread

N3417: Proposal for Unbounded-Precision Integer Types

Started byHelmut Zeisel <zei2011@liwest.at>
First post2013-04-16 12:41 -0700
Last post2013-04-20 05:19 -0700
Articles 5 — 4 participants

Back to article view | Back to comp.std.c++


Contents

  N3417: Proposal for Unbounded-Precision Integer Types Helmut Zeisel <zei2011@liwest.at> - 2013-04-16 12:41 -0700
    Re: N3417: Proposal for Unbounded-Precision Integer Types Martin Shobe <martin.shobe@travelport.com> - 2013-04-18 10:09 -0600
    Re: N3417: Proposal for Unbounded-Precision Integer Types Pete Becker <pete@versatilecoding.com> - 2013-04-18 10:08 -0600
      Re: N3417: Proposal for Unbounded-Precision Integer Types rkadeFR <contact@rkade.fr> - 2013-04-19 08:12 -0700
      Re: N3417: Proposal for Unbounded-Precision Integer Types Pete Becker <pete@versatilecoding.com> - 2013-04-20 05:19 -0700

#613 — N3417: Proposal for Unbounded-Precision Integer Types

FromHelmut Zeisel <zei2011@liwest.at>
Date2013-04-16 12:41 -0700
SubjectN3417: Proposal for Unbounded-Precision Integer Types
Message-ID<20f3e5fa-9261-4fe7-9860-c617fe76636c@googlegroups.com>
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                      ]

[toc] | [next] | [standalone]


#614

FromMartin Shobe <martin.shobe@travelport.com>
Date2013-04-18 10:09 -0600
Message-ID<kkmkjm$efv$1@dont-email.me>
In reply to#613
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                      ]

[toc] | [prev] | [next] | [standalone]


#615

FromPete Becker <pete@versatilecoding.com>
Date2013-04-18 10:08 -0600
Message-ID<2013041708460516615-pete@versatilecodingcom>
In reply to#613
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                      ]

[toc] | [prev] | [next] | [standalone]


#616

FromrkadeFR <contact@rkade.fr>
Date2013-04-19 08:12 -0700
Message-ID<kkp2r7$nfp$1@dont-email.me>
In reply to#615
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                      ]

[toc] | [prev] | [next] | [standalone]


#617

FromPete Becker <pete@versatilecoding.com>
Date2013-04-20 05:19 -0700
Message-ID<2013041908421033573-pete@versatilecodingcom>
In reply to#615
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                      ]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.std.c++


csiph-web