This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Of Bounties and Mercenaries
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: <stl at caltech dot edu>
- Cc: "GCC" <gcc at gcc dot gnu dot org>
- Date: 06 Apr 2004 05:20:55 -0300
- Subject: Re: Of Bounties and Mercenaries
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <20040406052352.63EAD26AC0D@water-ox.its.caltech.edu>
On Apr 6, 2004, "Stephan T. Lavavej" <stl@caltech.edu> wrote:
> In C++, you can use Resource Acquisition Is Initialization (RAII).
Sure. That, along with reference-counted pointers, can take care of
*some* cases in which you'd like to release memory. It doesn't take
care of cycles, though, and they're quite pervasive in GCC. Besides,
garbage collection can actually be more efficient than reference
counting, if it's done well.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}