From 6926318884927593506
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!news.maxwell.syr.edu!feed.news.tiscali.de!easynet-monga!easynet.net!peer.news.zetnet.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: nagle@animats.com (John Nagle)
Newsgroups: comp.std.c++
Subject: Re: boost::shared_ptr revisited again
Date: Fri,  3 Jun 2005 17:40:06 GMT
Organization: SBC http://yahoo.sbc.com
Lines: 34
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <ou0oe.1880$wy1.4@newssvr13.news.prodigy.com>
References: <4299DE64.40403@poczta.onet.pl> <3g55jqFajuhcU1@news.dfncis.de> <d7o5b6$3g3$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1117820416 17917 158.152.254.254 (3 Jun 2005 17:40:16 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 3 Jun 2005 17:40:16 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en, ja
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-UserInfo1: FKPO@MONTRUARPLYZZODM^P@VZ\LPCXLLBWLOOAFWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j53He6nm016235;
	Sat, 4 Jun 2005 03:40:06 +1000 (EST)
X-NNTP-Posting-Date: Fri, 03 Jun 2005 13:32:04 EDT
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++:4968

Rafal Dabrowa wrote:

> Hendrik Belitz wrote:

> I don't understand you. It is impossible to have language
> mechanisms which would prevent from all possible bugs, and
> my proposal does not aim to do this.

     There are languages that eliminate all bad-pointer bugs.
Java, for one.  All the scripting languages.  C# (almost).
C++ (and C) are the last mainstream languages that don't solve
that problem.  Every day, millions of computers crash or
are taken over by viruses, trojans, and worms for that
single reason.

     There are many unsafe shared pointer classes available.
They're not used much.  Bad reference counting can be worse
than no reference counting, because the bugs are really hard to
find.  Automatic memory management for C++ has to be airtight
to be competitive with the newer languages.

     Thus, a proposal that "almost" fixes the problem is not
useful.

     On the other hand, neither is denying that there is a problem.

				John Nagle

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



