lambda template literals?
Philippe Sigaud
philippe.sigaud at gmail.com
Wed Jan 18 13:13:57 PST 2012
On Wed, Jan 18, 2012 at 02:06, bearophile <bearophileHUGS at lycos.com> wrote:
>> 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.
This limitation (not being able to alias a lambda) is quite irksome.
If you do an enhancement request, could you also add one for:
alias __traits(whatever, whatever) some Result;
Right now, the alias grammar doesn't allow this and I find this
limitation jarring.
More information about the Digitalmars-d-learn
mailing list