Operator overloading through UFCS doesn't work

Tommi tommitissari at hotmail.com
Sat Oct 13 03:00:21 PDT 2012


On Saturday, 13 October 2012 at 09:50:05 UTC, Jonathan M Davis 
wrote:
> It is most definitely _by design_ that you cannot
> overload operators except as member functions.

I don't understand this design choice then. I don't see any 
problem in allowing UFCS operators. Because of the way UFCS 
works, it's guaranteed that there can't be any operator hijacking.


More information about the Digitalmars-d-learn mailing list