"Don" <[email protected]> wrote:
>> Because the coder could have typed `0.0' instead of `0', the coder 
>> probably wanted the compile time error you described.
>
> No. People expect sqrt(2) to compile, and to return 1.414....
> For example, it works in C and in C++.
>
> The only other possible solution would be to disallow conversions 
> integer->floating point. I doubt that would be acceptable.
>

But people don't expect 1/2 to return 0.5000 and D isn't C++ 


Reply via email to