Garbage Collection, Allocators/Deallocators and

Sean Kelly sean at invisibleduck.org
Sun Sep 19 07:31:43 PDT 2010


Ivo Kasiuk Wrote:
> 
> - Is there any way the regular finalization sequence (i.e. including
> automatic invoking of the destructors) can be run for an object that
> uses non-GC memory?

It should happen when delete is called.  Here's the code executed for delete:

http://dsource.org/projects/druntime/browser/trunk/src/rt/lifetime.d#L167

_d_delclass


More information about the Digitalmars-d-learn mailing list