[Issue 3632] modify float is float to do a bitwise compare
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 7 03:36:27 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=3632
Nathan S. <n8sh.secondary at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |n8sh.secondary at hotmail.com
Resolution|FIXED |---
--- Comment #37 from Nathan S. <n8sh.secondary at hotmail.com> ---
This was incorrectly marked fixed. `float is float` is still not a bitwise
comparison.
---
import std.math : isIdentical;
assert(!isIdentical(float.nan, -float.nan)); // passes
assert(float.nan is -float.nan); // also passes
---
--
More information about the Digitalmars-d-bugs
mailing list