Pure, Nothrow in Generic Programming

Walter Bright newshound1 at digitalmars.com
Fri Nov 27 15:20:52 PST 2009


dsimcha wrote:
> What about int.max + 1?  I specifically mentioned **signed** integers because,
> IIRC overflowing these is undefined in C, but overflowing unsigned is defined.

It's undefined behavior in C because C supports ones-complement 
arithmetic. D does not - twos-complement only.



More information about the Digitalmars-d mailing list