[Issue 3981] More useful and more clean 'is'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 24 07:49:22 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3981



--- Comment #2 from bearophile_hugs at eml.cc 2010-03-24 07:49:17 PDT ---
Don reminds us that there are many different NaNs, so "is nan" is not good.

"x is double.init" can be OK to detect uninitialized variables.

Eventually, "x == nan" can perform the smart comparison, testing if x is any of
the many possible nan values.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list