This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Stupid question about destructor


On Aug 24, 2001, Pascal Francq <pfrancq@ulb.ac.be> wrote:

> I have a stupid question concerning two classes:

Questions about programming languages do not belong in the mailing
list about the development *of* GCC (not *with* GCC).  Next time,
please ask in comp.lang.c++ or some similar forum.

> Must I explicitly called the destructor of a from b, or is it done 
> automatically?

In C++, destructors of derived classes implicitly call the destructors
of base classes.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]