Get function name at compile time?

Sean Eskapp eatingstaples at gmail.com
Sat Feb 12 11:13:52 PST 2011


Is there a way to get a function's name at compile time, for instance as part
of a template? Using .stringof doesn't work, and I can't find another way to
do it. Any help?

class FunctionWrapper(alias func)
{
    string name = func.stringof;
}


More information about the Digitalmars-d-learn mailing list