[Issue 3433] [tdpl] Comparing structs for equality is not member-by-member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 21 08:56:14 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3433
--- Comment #3 from Andrei Alexandrescu <andrei at metalanguage.com> 2009-10-21 08:56:13 PDT ---
(In reply to comment #2)
> Not sure if bitwise comparison should or shouldn't be the default, this is
> subjective.
Well bitwise comparison breaks encapsulation. If a type defines its own
equality operator, it most definitely had its reason. Skipping that is ignoring
the encapsulation attempted by the object.
--
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