Garbage collection and closures.
Dsby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 19 02:10:16 PDT 2017
On Saturday, 17 June 2017 at 17:15:50 UTC, Adam D. Ruppe wrote:
> On Saturday, 17 June 2017 at 14:19:34 UTC, ANtlord wrote:
>> [...]
>
> Where the variable is defined that is referenced in the closure.
>
> So:
>
> [...]
if the uses parma is 'scope':
void uses(scope void delegate() dg);
will it be not alloc memory?
More information about the Digitalmars-d-learn
mailing list