OT (partially): about promotion of integers

bearophile bearophileHUGS at lycos.com
Wed Dec 12 06:28:05 PST 2012


Araq:

> So how does D improve on C's model?

There is some range analysis on shorter integral values. But 
overall it shares the same troubles.


> If signed integers are required to wrap around in D (no 
> undefined behaviour),

I think in D specs signed integers don't require the wrap-around 
(so it's undefined behaviour).

Bye,
bearophile


More information about the Digitalmars-d mailing list