The Joy of Signalling NaNs! (A compiler patch)
Nick Sabalausky
a at a.a
Thu Mar 19 10:29:18 PDT 2009
"Mason Green" <mason.green at gmail.com> wrote in message
news:gpt70t$2b5t$1 at digitalmars.com...
> Don wrote:
>> Yup, I've had many NaN nightmares. Whenever you have an uninitialized
>> variable in C++ there's about a 1% chance that it's a NaN. That's really
>> fun to track down. NOT.
>> I think it's criminal that this feature has been in hardware since ***
>> 1980 *** and not made available even in systems languages.
>
> I second adding this feature to D. I've spent many, many hours chasing
> NaN bugs when porting box2d from c++. Most of the time, it came down to
> simply forgetting to initialize a float somewhere. I actually make a post
> on dsource a few days ago:
>
> http://www.dsource.org/forums/viewtopic.php?t=4501&sid=2e8f71e52efbcece43a63cbb261e8706
>
Warnings or errors on the use of uninitialized variables would also solve
that problem *wink* *wink* *nudge* *nudge*.
More information about the Digitalmars-d
mailing list