On 12/30/2010 07:08 PM, Steven Schveighoffer wrote:


auto opAdd(Foo other)

vs.

auto opBinary(string op)(Foo other) if (op == "+")

For the latter not to look so intimidating, it can be shortened to:

auto opBinary(string op : "+")(Foo other)

Reply via email to