unary operator overloading syntax
Robert M. Münch
robert.muench at robertmuench.de
Sat Jun 12 03:05:45 PDT 2010
Hi, why does this work:
void* opUnary(string s)() if (s == "*"){...
but this not:
void* opUnary("*")() {...
If the first syntax is the only possible one, can I have several
opUnary entries per struct/class or do I have to build a big switch
inside the code section and use "s" to dispatch to correct handler?
--
Robert M. Münch
http://www.robertmuench.de
More information about the Digitalmars-d
mailing list