destructors

Jarrett Billingsley kb3ctd2 at yahoo.com
Tue May 1 09:29:17 PDT 2007


"Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message 
news:f17iv3$1s1a$1 at digitalmars.com...
> Ok, so we can say that generally speaking, any D code that contains a 
> 'delete member;' in the destructor is bad code.  Right?

Any destructor which uses any reference members in any way is bad code. 
Thus making destructors nearly worthless for anything but releasing system 
resources.  But even then, I'm not sure if the destructors always get 
called, especially at the end of the program. 




More information about the Digitalmars-d-learn mailing list