This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Stupid question about destructor
- To: Pascal Francq <pfrancq at ulb dot ac dot be>
- Subject: Re: Stupid question about destructor
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 26 Aug 2001 10:17:48 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200108241512.RAA03589@mach.vub.ac.be>
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