@property
Jacob Carlborg
doob at me.com
Tue Aug 7 12:00:58 PDT 2012
On 2012-08-07 20:37, José Armando García Sancio wrote:
> Yep. The "problem" is not string lambda but that the mapping function
> is passed a template argument (which you need for string lambda to
> work). I guess that this is nice because you can alias the template or
> pass multiple lambdas (a little obscure but okay). If the lambda
> function was passed as a runtime parameter and not a template
> parameter can just do:
>
> [1, 2, 3].map(a=>a+1)
I'm not entirely sure but I think using an alias-parameter the delegate
will be inlined. Delegates are in general not inlined.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list