PROPOSAL: Implicit conversions of integer literals to floating point
bearophile
bearophileHUGS at lycos.com
Thu Dec 30 12:07:46 PST 2010
Alex_Dovhal:
> But people don't expect 1/2 to return 0.5000 and D isn't C++
There are languages that have had to wait for a major language update to reach that:
http://ideone.com/YdFbl
While other ones have gotten it right from the beginning (Scheme numerical tower is well designed):
http://ideone.com/q2Hot
Bye,
bearophile
More information about the Digitalmars-d
mailing list