From -3889762259192289973
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,176c9dc06a6729eb
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-04-05 09:38:04 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Ron Natalie <ron@sensor.com>
Newsgroups: comp.std.c++
Subject: Re: why doesn't delete NULL the pointer?
Date: Fri,  5 Apr 2002 17:37:25 GMT
Organization: Sensor Systems
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3CADDB9E.132344FA@sensor.com>
References: <a7j7vg$78s$1@watserv3.uwaterloo.ca> <3C9DD892.94860335@acm.org> <a7lhfq$co1$1@eeyore.INS.cwru.edu> <3C9E5921.735FEB25@acm.org> <a7mi76$1bl$1@eeyore.INS.cwru.edu> <3CA063FF.3C2EE83A@acm.org> <a7qsk8$81n$1@eeyore.INS.cwru.edu> <3CA0FD94.A13F8343@acm.org> <a7r75i$ndi$1@eeyore.INS.cwru.edu> <3CA26183.B5822E43@acm.org> <a813uq$dbj$1@eeyore.INS.cwru.edu> <3CADD3C8.EDA111C6@webmaster.com>
X-Trace: mail2news.demon.co.uk 1018028250 mail2news:25455 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,pdf
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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.
NNTP-Posting-Date: Fri, 05 Apr 2002 12:12:43 EST
Lines: 13
Xref: archiver1.google.com comp.std.c++:10409



>         How would this work if 'delete' NULLed the pointer?

Both examples are invalid.  It's undefined to use a pointer value that
has been deleted (even if you DONT dereference it).

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



