On 7/23/14, 9:45 AM, H. S. Teoh via Digitalmars-d wrote:
Why isn't "a==b" rewritten as "a.opCmp(b)==0"?? I'm pretty sure TDPL says this is the case (unfortunately I'm at work so I can't check my copy of TDPL).https://issues.dlang.org/show_bug.cgi?id=13179 :-(
It's a good decision. There are types that are comparable for equality but not compared for ordering. -- Andrei
