From 7144987621204051275
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7c21e57f4a25e5f3
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-05-04 14:25:01 PST
Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Ron Natalie <ron@spamcop.net>
Newsgroups: comp.std.c++
Subject: Re: deleted pointers in a container
Date: Fri,  4 May 2001 21:24:25 GMT
Organization: Sensor Systems
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3AF2B9F4.E6ED2860@spamcop.net>
References: <3AF03AEA.1A6CBA81@jps.net> <9cq236$es1mc$1@ID-3706.news.dfncis.de> <3AF09397.2A02A060@acm.org> <9cqc9q$f169l$1@ID-3706.news.dfncis.de> <slrn9f2p8h.1p4.news/comp.std.c++@nightrunner.nmhq.net> <9csn10$fafds$2@ID-3706.news.dfncis.de>
X-Trace: mail2news.demon.co.uk 989011471 mail2news:7256 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: Fri, 04 May 2001 10:15:45 EDT
Lines: 30
Xref: newsfeed.google.com comp.std.c++:4394



Markus Schaaf wrote:
>
> Completely agree with you. But there is no need to load a
> pointer's value into any special-purpose register just for
> copying. Keeping in mind, that there must be ways to copy
> values other than valid pointers anyhow.
> 

If the goal were just to copy it, yes.  However, one would presume
that the reason it was loaded into a pointer variable was that
it might someday be used as a pointer:

	int* p;
	int* q;

	p = q;

	if(p) { ...

Of course we're now arguing if the explosion happens on the assignment
or the if, but its wrong either way.

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



