Any chance that math.isNaN() will work at compile-time in the future? http://d.puremagic.com/issues/show_bug.cgi?id=8562
I haven't had the chance to study the source since last night, but is it not possible to check to see if something is a nan without doing a cast?
Our discussion on this in the last few days inspired me to write a blog post about it:
http://www.reddit.com/r/programming/comments/yehz4/nans_just_dont_get_no_respect/
http://www.drdobbs.com/cpp/nans-just-dont-get-no-respect/240005723