Destructing Member Objects

Brian White bcwhite at pobox.com
Sat Apr 5 12:12:18 PDT 2008


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.

Is there a way for the object to determine if it's being destructed as 
part of a GC run or if it's being deleted explicitly?

-- Brian


More information about the Digitalmars-d-learn mailing list