can I overload operators as extension methods?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 9 15:57:06 PST 2017


On Thursday, 9 March 2017 at 23:50:04 UTC, XavierAP wrote:
> The same way as T.foo() is lowered to foo(T) if no such member 
> is defined inside the type.

No.

But wrapping in a struct with alias this lets you extend them 
pretty easily too.


More information about the Digitalmars-d-learn mailing list