[Issue 13179] AA key type TagIndex now requires equality rather than comparison

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 23 10:11:30 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13179

--- Comment #10 from bearophile_hugs at eml.cc ---
(In reply to Jonathan M Davis from comment #9)
> I would not expect `a == b` to _ever_ be converted to `a.opCmp(b) == 0`.
> That's what opEquals is for.

Why? When opCmp returns zero it means ==. What's wrong about using that
possible return value to test for equality?

--


More information about the Digitalmars-d-bugs mailing list