https://issues.dlang.org/show_bug.cgi?id=13663

Peter Alexander <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m

--- Comment #1 from Peter Alexander <[email protected]> ---
There is nothing that can be done here. For user defined types (e.g. Tuple),
comparison operators are converted to calls to opCmp, i.e.

a < b    a.opCmp(b) < 0
a <= b    a.opCmp(b) <= 0
a > b    a.opCmp(b) > 0
a >= b    a.opCmp(b) >= 0

For NaN vs NaN, the comparison is neither equal, less than, nor greater than.
There is nothing that opCmp can return to give the desired semantics.

--

Reply via email to