Determining if a symbol is a function

Doctor J nobody at nowhere.com
Sun Apr 12 12:34:56 PDT 2009


Answered my own question:

    static if (is(typeof(func0) == function))
        writefln("func0 is a function.");

is() really wants a type, not an expression.





More information about the Digitalmars-d-learn mailing list