Operator overloading through UFCS doesn't work

Timon Gehr timon.gehr at gmx.ch
Sat Oct 13 12:50:01 PDT 2012


On 10/13/2012 06:02 PM, Maxim Fomin wrote:
> ...
> Different groups of people have different mind and same things produce
> different sense on them. From my point of view operator overloading
> methods are special functions and not treating them as candidates for
> UFCS does make more sense.

I do not understand how an operation that happens to be called '+' is 
fundamentally different from an operation that is called 'add'.

> Even if you convince in your opinion,
> language addition without applied purposes makes no benefit.

I guess the functionality could be achieved in DMD mostly by removing
code. (Code for good error messages excluded!)


More information about the Digitalmars-d-learn mailing list