foo => "bar" key/value literals in D!
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu May 26 02:09:51 PDT 2016
On 2016-05-25 20:55, Meta wrote:
> Is that true? I don't claim to know exactly how the compiler works, but
> given a template lambda:
>
> foo => 3
>
> Doesn't it generate something like the following?
>
> template __lambda10293(T)
> {
> <deduced return type> __lambda10293(T foo)
> {
> return 3;
> }
> }
>
> In that case, "foo" is not a template parameter, but a runtime
> parameter, so template parameter introspection would not help in this case.
>
Well, a runtime parameter in a template then :)
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list