Yes; opBinary was just given as an example. Unary operators look like this:
T opUnary(string op)();
(And maybe trinary operators ?: ) :)
Can they still be overloaded ? Will they have a similar syntax ? If so
what about the e++ and ++e operators? How they are distinct ? Or is
the latter eliminated from the language ?
Though, I like the idea, just a quick look at a code and you can see
all the operators in a place.
Bye, Gzp
I think user code should only define ++e. Then the compiler can use that
to define e++.
Andrei
Thanks, that's great.
Gzp