OT (partially): about promotion of integers
Walter Bright
newshound2 at digitalmars.com
Tue Dec 11 13:43:45 PST 2012
On 12/11/2012 10:36 AM, eles wrote:
> You really miss the point here. Nobody will ask you to promote those numbers to
> 64-bit or whatever *unless necessary*.
No, I don't miss the point. There are very few cases where the compiler could
statically prove that something will fit in less than 32 bits.
Consider this:
Integer foo(Integer i)
{
return i * 2;
}
Tell me how many bits that should be.
More information about the Digitalmars-d
mailing list