[Issue 3902] New: Definition of opCmp
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 8 14:42:51 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3902
Summary: Definition of opCmp
Product: D
Version: 2.041
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: www.digitalmars.com
AssignedTo: nobody at puremagic.com
ReportedBy: Norbert at Nemec-online.de
--- Comment #0 from Norbert Nemec <Norbert at Nemec-online.de> 2010-03-08 14:42:44 PST ---
Strangeness in the definition of opCmp:
http://www.digitalmars.com/d/2.0/operatoroverloading.html#compare
Mathematically the following are equivalent
a < b <=> b > a
But the definition seems to swap
a < b into b >= a
DMD seems to work correctly, though.
--
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