umm when i posted this bug, i didn't know the string literal as a temp arg very well.
the following should compile & run .. and at least the compile error message is not reasonable
import std.stdio;
template a(char[]name, T...){
char[] a(T t){
char[] localchar;
foreach(a;t)
{
writefln(`hello`);
localchar~=typeof(a).mangleof;
}
return localchar;
}
}
void main()
{
writefln(a!("Adf", typeof("adf"),uint).a("adf",1234));
}
Comment #2 by bugzilla — 2006-12-13T13:48:37Z
I'll fix it, but the ).a( should be replaced with )(, as it is a template function.