Article View: comp.std.c++
Article #3919Re: Referencing pointers after delete
From: David Vandevoorde
Date: Thu, 04 Apr 1996 21:20
Date: Thu, 04 Apr 1996 21:20
25 lines
1860 bytes
1860 bytes
>>>>> "TP" == Tom Payne <thp@cs.ucr.edu> writes:
[...]
TP> This is probably the hub of our difference: I have difficulty
TP> imagining a reasonable architecture that does something other than
TP> ignoring or trapping the reading of invalid pointers. (Granted,
TP> "reasonable" is in the eye of the beholder.)
On the contrary, I think it could be a quite common thing. Many
architectures memory-map I/O and it's perfectly imaginible that:
int x = *p;
where p is an invalid pointer triggers some I/O operation because
p happens to point into such an ``I/O area''. The standard cannot
reasonably be expected to say what can or cannot happen in those
cirucmstances.
Daveed
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Technical Details
Message-ID:
<xsou3yzzqg7.fsf@juicer.cs.rpi.edu>Path:
arc1-ca.pugleaf.net!fido.asd.sgi.com!austernReferences:
<4jmibl$qvt@mulga.cs.mu.OZ.AU> <4jp5dv$lbj@engnews1.Eng.Sun.COM> <4jpseg$fus@galaxy.ucr.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern From: vandevod@cs.rpi.edu (David Vandevoorde) Newsgroups: comp.std.c++ Subject: Re: Referencing pointers after delete Date: 04 Apr 1996 13:20:08 PST Organization: RPI Computer Science Approved: austern@isolde.mti.sgi.com Message-ID: <xsou3yzzqg7.fsf@juicer.cs.rpi.edu> References: <4jmibl$qvt@mulga.cs.mu.OZ.AU> <4jp5dv$lbj@engnews1.Eng.Sun.COM> <4jpseg$fus@galaxy.ucr.edu> NNTP-Posting-Host: isolde.mti.sgi.com X-Original-Date: 04 Apr 1996 15:26:00 -0500 In-Reply-To: thp@cs.ucr.edu's message of 01 Apr 1996 17:03:37 PST X-Newsreader: Gnus v5.1 X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBMWQ9Cky4NqrwXLNJAQEymgIAnUFaCnzh0yjFMvBRP6/06DeXWidcW+Xt bhQTmhsu9svLkJSRYqZsfPmh0IC++WUVHyw5fHNn8CyDVrV2BMimoQ== =1NDZ Originator: austern@isolde.mti.sgi.com