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