Generators in D

so so at so.so
Thu May 12 08:55:37 PDT 2011


> The argument is an alias, so just a symbol.
>
> See: http://digitalmars.com/d/2.0/template.html (Template Alias  
> Arguments)
>
> The trick is that the template is instantiated as a local function,  
> which has
> access to the enclosing scope. (and therewith to the local symbol that  
> is aliased)
>
> Timon

And i was thinking that i knew all about templates.
Impressive, thanks!


More information about the Digitalmars-d mailing list