[Issue 3789] Structs members that require non-bitwise comparison not correctly compared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 24 12:36:19 PDT 2012


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #19 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-24 12:36:15 PDT ---
(In reply to comment #18)
> For the rare cases where you actually *need*
> bitwise comparison on arrays or floats, you can define a special opEquals.

Also hashes suffer from this problem as well. They're compared via 'is' instead
of '==' in struct fields, just like arrays.

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