Comment #0 by bearophile_hugs — 2012-01-17T17:10:54Z
Currently (DMD 2.058head) this kind of code is not allowed, but I think it's handy to have (I suggest to require the () around the lambda template):
void main() {
alias (x => x ^^ 2) sqrTemplate;
}
Timon Gehr reminds me that the semantics of that code is already available, just with a longer syntax:
template ID(alias a){alias a ID;}
void main(){
alias ID!(x => x ^^ 2) sqrTemplate;
}
Comment #1 by bearophile_hugs — 2012-01-19T10:38:16Z