"Mason Green" <[email protected]> wrote in message news:[email protected]... > 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*.
