How can you read and understand the source of *naryFun in functional.d?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jan 29 15:49:22 PST 2011


Wait, why won't this compile?:

template foo(int value)
{
    int result;
    alias result foo;
}

void main()
{
    writeln( foo!(4) );
}


More information about the Digitalmars-d-learn mailing list