Bug 3902 – Definition of opCmp

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-03-08T14:42:00Z
Last change time
2014-02-15T02:43:39Z
Assigned to
nobody
Creator
Norbert

Comments

Comment #0 by Norbert — 2010-03-08T14:42:44Z
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.
Comment #1 by clugdbug — 2010-04-09T19:24:21Z
Fixed DMD2.042.