Not allowed to globally overload operators?
Tejas
notrealemail at gmail.com
Tue Jul 20 06:40:38 UTC 2021
On Tuesday, 20 July 2021 at 06:34:45 UTC, vit wrote:
> On Tuesday, 20 July 2021 at 06:20:34 UTC, Tejas wrote:
>> ...
>> Initially, I was trying to create the spaceship operator of
>> C++, but we aren't allowed to create new operators
>> ...
>
> D has spaceship operator: opCmp
> (https://dlang.org/spec/operatoroverloading.html#compare).
I know, but I just really wanted the ```<=>``` :(
More information about the Digitalmars-d-learn
mailing list