[Issue 669] (a == b) misuses opCmp and opEquals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 10 10:12:03 PST 2006


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


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #1 from smjg at iname.com  2006-12-10 12:12 -------
Under DMD 0.177, the code doesn't even compile:

opCmpEquals_2.d(9): semicolon expected following auto declaration, not ','
opCmpEquals_2.d(9): found ',' instead of statement

But having fixed this error, the bug doesn't show at all.  Experimenting shows
that:
== and != use only opEquals
<> and !<> use only opCmp
which is how it should be.

WFM?


-- 



More information about the Digitalmars-d-bugs mailing list