Topic: Notes on garbage collection, reference counting,


Author: hyrosen@mail.com (Hyman Rosen)
Date: Tue, 14 Dec 2004 21:05:01 GMT
Raw View
John Nagle wrote:
> Microsoft tried with "Managed C++", but the semantics
> of destructors there are quite wierd.  Among other things,
> they can be called more than once.

That's not unique to Managed C++. Controlled objects in Ada
can have their destructors called multiple times as well. If
it matters, you must keep a flag or other indicator (such as
nulling a pointer) to see whether you have been destructed.
And Ada doesn't even have (i.e., require) garbage collection.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: hyrosen@mail.com (Hyman Rosen)
Date: Wed, 8 Dec 2004 03:39:24 GMT
Raw View
John Nagle wrote:
>    This bears thinking about.

This fits in with the UNIX philosophy of solving 90%
of the problems and ignoring the final hard 10%. That
way most people get the benefit of a simple system,
and the people who create complexity get what they
deserve by having to deal with it themselves.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]