From -5349222575810494482
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,176c9dc06a6729eb
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-03-24 11:05:02 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-peer0!btnet!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "James Kuyper Jr." <kuyper@wizard.net>
Newsgroups: comp.std.c++
Subject: Re: why doesn't delete NULL the pointer?
Date: Sun, 24 Mar 2002 19:04:05 GMT
Organization: Giganews.Com - Premium News Outsourcing
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3C9DF1AC.D46ECA4B@wizard.net>
References: <a7j7vg$78s$1@watserv3.uwaterloo.ca> <KYBnxQAVcbn8EwAC@robinton.ntlworld.com>
X-Trace: mail2news.demon.co.uk 1016996649 mail2news:10410 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
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)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Sun, 24 Mar 2002 09:27:15 CST
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
Lines: 18
Xref: archiver1.google.com comp.std.c++:10154

Francis Glassborow wrote:
....
> We could do with an FAQ round here. delete gets a pointer value, (and
> essentially that is what it must get) aka an address of the object to be
> destroyed and have its memory released. It knows nothing of the
> location, if any, where that address is stored.

The point is, that delete could have been given a different interface
that took a pointer to a pointer, or a reference to a pointer, which
would have allowed such semantics. So the question of why that wasn't
done is legitimate.

---
[ 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.research.att.com/~austern/csc/faq.html                ]



