The case for integer overflow checks?

Adam D. Ruppe via Digitalmars-d digitalmars-d at
Fri Sep 15 12:33:56 UTC 2017

On Friday, 15 September 2017 at 12:04:27 UTC, Kagamin wrote:
> Since width can't be negative, C programmer would use unsigned 
> integer for it

That's often a big mistake. Lots of people do it... but you 
shouldn't, exactly because of the wraparound behavior.

More information about the Digitalmars-d mailing list