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.
}
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.
}