Andrei Alexandrescu Wrote:

> Yes; opBinary was just given as an example. Unary operators look like this:
> 
> T opUnary(string op)();

Why not do 

T op(string op)(); // unary
T op(string op)(T rhs); // binary

Reply via email to