The documentation says:

TemplateDeclaration:
        template TemplateIdentifier ( TemplateParameterList ) Constraint(opt)
                { DeclDefs }

DeclDefs as defined where?

What should be the effect of the following?

import std.stdio;

template gnomeSaying(T, U, V, string s)
{
    writefln(s ~ " motherfucker");
}

void main()
{
   writefln(gnomeSaying!(int, double, int, "Yo"));
}




Reply via email to