From 8697452885857634749
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7c21e57f4a25e5f3
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-05-28 15:58:02 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!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: deleted pointers in a container
Date: Mon, 28 May 2001 22:57:17 GMT
Organization: Not Enough
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3B118BA1.E416525E@wizard.net>
References: <3AF0BE2C.F07A2FB7@acm.org> <OE45ZY5sukPifCLKgE100004423@hotmail.com> <3AF69057.1778277E@acm.org> <873f7ae8.0105250552.71767b39@posting.google.com> <3B0EE5D3.7C7D90B6@acm.org> <873f7ae8.0105271040.32362b99@posting.google.com>
X-Trace: mail2news.demon.co.uk 991090641 mail2news:3309 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,es,de,ru
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
Xref: archiver1.google.com comp.std.c++:5374

Kiril Avdeiv wrote:
...
> However, the standard says "an object or a non-overloaded function is
> used if it appears in a potentially evaluated expression". Given that,
> if we take the cuttings from the standard that you quoted, we have
> that there's no way to assign to an unitialized pointer:
> 
> int   i,  * pi;
> pi = &i;   // pi - an invalid pointer value - is used. Undefined

You're confusing the use of a variable with use of the value stored in
that variable. The variable 'pi' is used, but the invalid value that was
stored in pi is NOT used. It is simply being replaced by a new value,
which happens to be a valid one.

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



