Destructors and Deterministic Memory Management

Daniel Keep daniel.keep.lists at gmail.com
Wed May 6 23:33:12 PDT 2009



Frits van Bommel wrote:
> Daniel Keep wrote:
>> When your class' dtor is called, you CANNOT say whether any of the
>> references into GC-controlled memory you hold are still valid.
> 
> You forgot to add: unless you know for a *fact* they're referenced from
> a GC root, for example from a global variable (directly or indirectly).

Or there's an integer somewhere that LOOKS like a pointer to it ...  I
was talking from the perspective of NOT having any information outside
of the object itself.  :P

  -- Daniel



More information about the Digitalmars-d mailing list