[Issue 8530] Float types default initializers doesn't work in class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 10 03:19:45 PDT 2012


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



--- Comment #2 from Daniel Kozak <kozzi11 at gmail.com> 2012-08-10 03:19:42 PDT ---
(In reply to comment #1)
> If you want to check for NaN, then use std.math.isNaN. As I understand it,
> there is no guarantee that two NaN values have the same bit pattern (at
> minimum, you have signed and unsigned NaN, and there may be more variations - I
> don't remember). isNaN returns true in both cases. So, I don't believe that
> this is a bug.

Thanks for your reply. However I still think it is a bug, because when I assign
TYPE.init to variable VAR of type TYPE, and then I compare VAR is TYPE.init, I
assumed it returns true;

-- 
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