https://issues.dlang.org/show_bug.cgi?id=3981
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|future |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=3981
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3981
--- Comment #5 from bearophile_h...@eml.cc 2011-07-16 18:00:39 PDT ---
(In reply to comment #4)
struct is struct already does a bitwise comparison. Is that what you were
asking for?
Right, I didn't know this, thank you.
So what's missing
http://d.puremagic.com/issues/show_bug.cgi?id=3981
--- Comment #3 from bearophile_h...@eml.cc 2011-07-09 11:14:03 PDT ---
Bug 3632 implements this for floating point values (it's not truly bitwise when
they are NaN).
some_struct is some_struct seems useful.
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=3981
--- Comment #2 from bearophile_h...@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
http://d.puremagic.com/issues/show_bug.cgi?id=3981
--- Comment #1 from bearophile_h...@eml.cc 2010-03-17 07:38:16 PDT ---
So this assert should never fail (from a comment by grauzone):
T x;
assert(x is T.init);
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email