Portability of uint over/underflow behavior

Don nospam at nospam.com
Sat Jan 3 13:05:02 PST 2009


bearophile wrote:
> Don:
>> Not so. You can rely on this. It's a fundamental mathematical property.
> 
> If integral overflow checks are introduced, they will become compile/runtime errors.

The question was about incrementing uint, not int. Preventing wraparound 
on uints would break everything!

> 
> Bye,
> bearophile



More information about the Digitalmars-d mailing list