Comment #0 by verylonglogin.reg — 2014-03-07T01:28:20Z
As `opCmp` is enough to check for equality a compiler could use it:
---
struct S
{ int opCmp(const S) const { return 1; } }
class C
{ override int opCmp(Object) { return 0; } }
void main()
{
assert(S.init != S.init);
assert(new C == new C);
}
---
Comment #1 by verylonglogin.reg — 2014-03-07T01:28:50Z