PROPOSAL: Implicit conversions of integer literals to floating point

Manfred_Nowak svv1999 at hotmail.com
Thu Dec 30 03:30:09 PST 2010


Don wrote:

> 0 converts to double using implicit conversions.

The coder should know this while typing.
The coder should know about the possible problems while typing.

Because the coder could have typed `0.0' instead of `0', the coder probably 
wanted the compile time error you described.

Therefore the modell underlying your proposal might be wrong.

-manfred


More information about the Digitalmars-d mailing list