Re: Integer Overflow




"jacob navia" <jacob@xxxxxxxxxxxx> wrote in message
news:ifivn6$coe$1@xxxxxxxxxxxxxxxxxxxx
Le 30/12/10 22:26, tm a écrit :

I propose intoducing new types with overflow checking.
The classic types int, long, ... would keep the
behaviour of ignoring overflow. New types like
checkd_int, checkd_long could be used for values which
need overflow checking.


This is just too complicated, besides what does
checked_int*int ? Unchecked? checked?

Ref: C++ SafeInt. It's already been done, questions already answered.

http://msdn.microsoft.com/en-us/library/dd570023.aspx


.



Relevant Pages

  • Re: Integer Overflow
    ... The classic types int, long, ... ... behaviour of ignoring overflow. ... overhead is about 8%, albeit under unspecified conditions (and ...
    (comp.lang.c)
  • Re: Integer Overflow
    ... The classic types int, long, ... ... behaviour of ignoring overflow. ... Seed7 Homepage: http://seed7.sourceforge.net ... Seed7 - The extensible programming language: ...
    (comp.lang.c)