Integer overflow and underflow semantics

Alex Rønne Petersen xtzgzorex at gmail.com
Fri May 4 21:57:45 PDT 2012


Hi,

I don't think the language really makes it clear whether overflows and 
underflows are well-defined. Do we guarantee that for any integral type 
T, T.max + 1 == T.min and T.min - 1 == T.max?

This is relevant in particular for GDC and LDC since they target a lot 
of weird architectures.

-- 
- Alex


More information about the Digitalmars-d mailing list