http://d.puremagic.com/issues/show_bug.cgi?id=8833
--- Comment #1 from Andrej Mitrovic <[email protected]> 2012-10-16 20:26:04 PDT --- Btw if you want to see some interesting code: import std.stdio; import std.typetuple; int Delay(alias Call, alias arg)() { return Call(arg); } template Map(alias Call, args...) { alias TypeTuple!( Delay!(Call, args[0]), //~ Delay!(Call, args[1]), // can't due to error 2 * 10 // pretend we could ) Map; } int fun(int arg) { return arg * 10; } void foo(Args...)(Args args) { print( Map!(fun, args) ); } void print(int res1, int res2) { writefln("%s %s", res1, res2); // writes 10 20 } void main() { int x = 1; int y = 2; foo(x, y); } Fun or what? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
