Non-freeing GC memory management

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 18 07:19:44 PST 2015


On Wednesday, 18 November 2015 at 05:49:00 UTC, tcak wrote:
> That means object destructors are to be called only when a new 
> allocation happens?

For things allocated with the gc, yes, though remember that isn't 
all things. Structs without `new` for example are automatically 
destroyed at end of scope.


More information about the Digitalmars-d mailing list