Integer semantic in D, what are the tradeoff ? Do we have numbers ?
deadalnix
deadalnix at gmail.com
Sun Dec 16 15:10:59 PST 2012
On Sunday, 16 December 2012 at 22:56:08 UTC, Tim Čas wrote:
> FYI, in C, unsigned integers are guaranteed to be modulo 2^N
> (it is not called "overflow" in such a case). In other words,
> `UINT_MAX + 1U == 0`.
>
> Only *signed* integers can overflow or underflow; I do not know
> the D's semantics in this case.
You seems to be right. The still still hold for signed integer.
More information about the Digitalmars-d
mailing list