digitalmars.D.bugs - [Issue 3902] New: Definition of opCmp
- d-bugmail puremagic.com (23/23) Mar 08 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3902
- d-bugmail puremagic.com (12/12) Apr 09 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3902
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 puremagic.com
ReportedBy: Norbert Nemec-online.de
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: -------
Mar 08 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3902
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |clugdbug yahoo.com.au
Resolution| |FIXED
Fixed DMD2.042.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 09 2010








d-bugmail puremagic.com