Bah, I replied too soon. These also work, makes sense now I think about it:

void doStuff(int a ) {}

void templ(alias fun)()
{
    writeln( (&fun).stringof[2..$] );  // prints doStuff (really)  
    writeln( fun(int.init).stringof ); // prints doStuff(0) 
}


Reply via email to