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.