Closures not yet supported in CTFE's

JS js.mdnq at gmail.com
Sat Jul 27 09:47:04 PDT 2013


When I try to pass a lambda to a template, I get the subject 
error.

(string x) => { return x~"1"; }

But when I jsut do

(string x) => x~"1"

it works....

Come on!!!


More information about the Digitalmars-d-learn mailing list