On 2012-05-18 04:21, John Maschmeyer wrote:

Also, passing lambdas via template alias parameters works. So something
like this should work as well.

void foo(alias dg)() {
writeln(__traits(codeof, dg));
}

void main() {
foo!(x=>x+1)();
}

Very nice.

--
/Jacob Carlborg

Reply via email to