What is this strange alias syntax?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon May 23 07:50:11 PDT 2011


Since &main can't be a template value argument, maybe he meant this use case:

alias int func();

void foo(alias T)()
{
    static assert(is(typeof(T) == func));
}

int main()
{
    foo!main;
    return 0;
}


More information about the Digitalmars-d-learn mailing list