From 4566149918256090949 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,176c9dc06a6729eb X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2002-04-08 08:54:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!kibo.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: "Sriram Chandrasekaran" Newsgroups: comp.std.c++ Subject: Re: why doesn't delete NULL the pointer? Date: Mon, 8 Apr 2002 15:52:18 GMT Organization: Ulticom, Inc. Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: References: <3C9DD892.94860335@acm.org> <3C9E5921.735FEB25@acm.org> <3CA063FF.3C2EE83A@acm.org> <3CA0FD94.A13F8343@acm.org> <3CA26183.B5822E43@acm.org> <3CADD3C8.EDA111C6@webmaster.com> <3CADDB9E.132344FA@sensor.com> X-Trace: mail2news.demon.co.uk 1018281229 mail2news:12511 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) NNTP-Posting-Date: 8 Apr 2002 15:33:40 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 32 Xref: archiver1.google.com comp.std.c++:10436 The delete in both the cases is INVALID !!!! Now the question is why does the delete not make it NULL and some previous mail showed a link to stroustrup's web page ! That was very clear and obvious ! thanks folks for the discussion.enjoyed very much. Sriram "Ron Natalie" wrote in message news:3CADDB9E.132344FA@sensor.com... > > > > 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 ] > --- [ 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 ]