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

Simen Kjaeraas <[email protected]> changed:

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

--- Comment #1 from Simen Kjaeraas <[email protected]> ---
This would perhaps more correctly be filed as 'int does not have opCmp'. Since
int does support the <, <=, >=, > operators it kinda, sorta has opCmp, but no
member by that name. That's not really an option for Typedef, as it's not a
magic type like int. At the same time, we absolutely expect MyInt.init <
MyInt.init to compile.

There may be a good argument for adding opCmp and friends to built-in types to
make generic code more generic, but removing them from Typedef is no solution.

--

Reply via email to