From 2423017426639155893
X-Google-Thread: f78e5,480a31feed3c6a1b
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news4.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.tiscali.de!newsfeed.icl.net!newsfeed.fjserv.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: brangdon@cix.co.uk (Dave Harris)
Newsgroups: comp.std.c++
Subject: Re: boost::shared_ptr revisited again
Date: Sun, 12 Jun 2005 16:07:18 GMT
Lines: 24
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <memo.20050612122425.2540A@brangdon.m>
References: <IHw3vD.Bx1@beaver.cs.washington.edu>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1118592443 437 158.152.254.254 (12 Jun 2005 16:07:23 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Sun, 12 Jun 2005 16:07:23 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Orig-X-Trace: individual.net xPnjMWHnRaLHiGLP5AYzPgqqkKQ6od/bHakGNLnNRmwyHptpc=
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Reply-To: brangdon@cix.co.uk
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j5CG7I06027021;
	Mon, 13 Jun 2005 02:07:18 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:5094

SeeWebsiteForEmail@moderncppdesign.com (Andrei Alexandrescu) wrote 
(abridged):
> Some of the people who hate GC don't realize, or (worse) don't care for 
> the benefit above, consider GC the appanage (2nd time I got to use this 
> word today :o)) of lazy programmers and go on to focus on the costs 
> alone. Yes, there are costs. But the benefits must be understood.

Except those benefits cannot be gained by bolting GC onto C++ 
retrospectively. So they are all but irrelevant in this newsgroup.

The problem with destructors is not just that they allow the memory to be 
reused by an object of different type. They also mess with the object's 
vtable and, in general, break its class invariant. You still have a broken 
object even if the memory isn't reclaimed. So GC will not have all the 
benefits in C++ that it has in Java or Lisp.

-- Dave Harris, Nottingham, UK.

---
[ 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                       ]



