OT (partially): about promotion of integers

eles eles at eles.com
Wed Dec 12 09:06:43 PST 2012


> OTOH, I *never* asked for compulsory promotion, just mimicking 
> it. (in fact, I was not asking for anything, just addressed a 
> question) The idea is to guarantee, by the compiler, that the 
> final result of an integral arithmetic expression is AS IF all 
> integrals there are promoted to some widest-integral type.

And the question is exactly that: what are the reasons to favor 
one view over another? (that is int-C over int-FPC)

Is FPC that slow? Is C that easy? Weighting pro and cons?


More information about the Digitalmars-d mailing list