Destructing Member Objects

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat Apr 5 15:01:27 PDT 2008


"Brian White" <bcwhite at pobox.com> wrote in message 
news:ft8iuk$qvm$1 at digitalmars.com...
>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

Suggested, lauded, unread, forgotten.

Just like most proposed features for D. 




More information about the Digitalmars-d-learn mailing list