Is D floating point semantics too advanced?

Hans-Eric Grönlund hasse42g at gmail.com
Fri Aug 24 00:12:39 PDT 2007


Point taken. Still feel awkward about having to accept tests like (x != x) with hidden (not obvious) semantics, special for floating point types. But I shall not hold D responsible for it anymore, this is a matter of the standard specification.

Thank you for enlightening me.

/Hans-Eric

Walter Bright Wrote:

> The behavior is as specified by the floating point standard IEEE 754. To 
> change it would break from FORTRAN, C and C++ usage in a way that would 
> silently break code that is transliterated.




More information about the Digitalmars-d mailing list