can I overload operators as extension methods?

XavierAP via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 9 15:50:04 PST 2017


The same way as T.foo() is lowered to foo(T) if no such member is 
defined inside the type. It would allow me to extend 3rd party 
types with operator notation without wrapping them.

After trying and reading the specification, looks like nuts, but 
just wanted to confirm. Thx


More information about the Digitalmars-d-learn mailing list