Understanding the D memory model re: Voldemort types

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 10 02:40:29 PDT 2015


On Thursday, 9 April 2015 at 18:23:31 UTC, Matt Kline wrote:
> Does the Voldemort object then get implicit destructor code 
> that destroys the closed-over variables when it falls out of 
> scope?

Closures may or may not be destroyed by GC. Such scenario used to 
be problematic, but there was some progress on it recently wrt 
support of struct destructors allocated on heap, though I don't 
know whether it affects closures.


More information about the Digitalmars-d mailing list