Destructing Member Objects

Lionello Lunesu lio at lunesu.remove.com
Sat Apr 5 16:48:44 PDT 2008


Brian White wrote:
> I understand that you're not supposed to delete member within the 
> destructor because, when called via the GC, it's possible that object 
> has already been destructed.

:O really? Where can I find more information about this?

I think it's odd that a member can get deleted before a class that 
contains it. That class still has a valid pointer to it, right? So the 
GC could not have finalized it.. ???

L.


More information about the Digitalmars-d-learn mailing list