Don wrote:
It's great that D initializes floating-point variables to NaN, instead
of whatever random garbage happened to be in RAM.
But, if your calculation ends up with a NaN, you have to work out where
it came from. Worse, the NaN might not necessarily
be visible in your final results, but you results may nonetheless be wrong.
[...]
I propose that this should become part of DMD. It doesn't need to be in
the spec, it's primarily for debugging.
That's terrific, Don. I've been bitten by NaNs in calculations many
times. This would be an excellent improvement to D.
Andrei