Not allowed to globally overload operators?

vit vit at vit.vit
Tue Jul 20 06:34:45 UTC 2021


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).




More information about the Digitalmars-d-learn mailing list