lambda template literals?

bearophile bearophileHUGS at lycos.com
Tue Jan 17 17:06:42 PST 2012


Timon Gehr:

> Yes. The fact that your particular example does not work is a mere 
> syntactic issue.
> This works:
> 
> template ID(alias a){alias a ID;}
> void main(){
>      alias ID!(x => x ^^ 2) sqrTemplate;
> }

Thank you Timon, you are often good :-)
I'll add it as enhancement request.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list