Get name of alias parameter at compile time?

dsimcha dsimcha at yahoo.com
Tue Oct 13 21:36:47 PDT 2009


Is there a way to get the name of an alias parameter at compile time?  For
example:

void doStuff() {
    // Do stuff.
}

void templ(alias fun)() {
   writeln(fun.stringof);  // Prints doStuff.
}



More information about the Digitalmars-d mailing list