xxxxxxxxxx
import std.stdio;
void fooImpl(char token, T)(const T line)
{
writefln("%s%s%s", token, line, token);
}
alias a(T) = fooImpl!('"', T);
template as(T)
{
alias as = fooImpl!('"', T);
}
alias b(T) = fooImpl!('\'', T);
void main()
{
auto quoteFooString = &fooImpl!('"', string);
auto singlequoteFooString = &fooImpl!('\'', string);
quoteFooString("test quote");
singlequoteFooString("test single quote");
import std.meta;
// std/meta.d(1232): Error: template instance `Template!'"'` does not match template
alias quoteFoo = ApplyLeft!(fooImpl, '"', AliasSeq!(int));
quoteFoo(3);
}