From 3819978534465953832
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!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: Jean-Marc Bourguet <jm@bourguet.org>
Newsgroups: comp.std.c++
Subject: Re: boost::shared_ptr revisited again
Date: 10 Jun 2005 07:40:02 GMT
Organization: Altopia Corp. - Usenet Access - www.altopia.com
Lines: 29
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <pxbekbaslza.fsf@news.bourguet.org>
References: <4299DE64.40403@poczta.onet.pl> <3g55jqFajuhcU1@news.dfncis.de> <d7o5b6$3g3$1@nemesis.news.tpi.pl> <ou0oe.1880$wy1.4@newssvr13.news.prodigy.com> <S4Odne3eN6s1Cj3fRVn-2g@giganews.com> <IHMn9C.1CM1@beaver.cs.washington.edu> <AoWdnSlmv52dxDnfRVn-oA@giganews.com> <1118144437.192255.257840@g47g2000cwa.googlegroups.com> <k4ydnemTlqhbRjjfRVn-rw@rcn.net> <IHr3K9.1KJs@beaver.cs.washington.edu> <pxb4qc9tjt0.fsf@news.bourguet.org> <IHsD6v.xM4@beaver.cs.washington.edu> <878y1j9syu.fsf@news.bourguet.org> <IHupBI.Ax1@beaver.cs.washington.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ucar.edu
X-Original-NNTP-Posting-Host: cdssoph29.cadence.com
X-Trace: news.cadence.com 1118388921 cdssoph29.cadence.com (10 Jun 2005 00:35:21 -0700)
X-Original-Trace: 10 Jun 2005 00:35:21 -0700, cdssoph29.cadence.com
X-Received: By mx-sanjose.cadence.com as j5A7ZPtu013515 at Fri Jun 10 00:35:25 2005
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Xref: g2news1.google.com comp.std.c++:5058


SeeWebsiteForEmail@moderncppdesign.com ("Andrei Alexandrescu (See
Website For Email)") writes:

> Jean-Marc Bourguet wrote:
> > I agree with your definition of dangling pointer.  I object
> > to your use of "eliminate" when more often than not the bug
> > would still be there, just have another symptom. A GC
> > transform most deferences of a dangling pointer to an access
> > to the wrong object.
> 
> By wrong object do you mean an object of some arbitrary type that happens
> to be in memory at the address pointed-to by the pointer? Or what?

By wrong object I mean an object of the correct type but which is not
the one to be accessed as logically it's usefullness would have ended
at the time where the delete would have been done without a GC.

A+

-- 
Jean-Marc

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



