The Joy of Signalling NaNs! (A compiler patch)
Mason Green
mason.green at gmail.com
Thu Mar 19 03:33:10 PDT 2009
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
More information about the Digitalmars-d
mailing list