From -7543841428177932316
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,dfa6d585499f3572
X-Google-Attributes: gidf78e5,public
From: James.Kanze@dresdner-bank.com
Subject: Re: delete (T*)0;
Date: 1999/06/23
Message-ID: <7ko8dj$b1u$1@nnrp1.deja.com>#1/1
X-Deja-AN: 492748405
Content-Transfer-Encoding: quoted-printable
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <oN6b3.1735$ec.32152@ndnws01.ne.mediaone.net>
X-Original-Date: Tue, 22 Jun 1999 15:00:11 GMT
Content-Type: text/plain; charset=iso-8859-1
X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I)
X-Complaints-To: news@news.unimelb.edu.au
X-Http-Proxy: 1.0 x29.deja.com:80 (Squid/1.1.22) for client 193.194.7.84
X-Trace: izvestia.its.unimelb.edu.au 930101022 4931 128.250.29.16 (23 Jun 1999 01:23:42 GMT)
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Tue Jun 22 15:00:11 1999 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAN3A3CuEDnX0m9pzZAQFjGgF/Xh+/q1rj48gRkjkRNX6uBsmCEXR/3Wvz g4y+muvb+bskiaA5EakWfcee3wXL9jX6 =qnfq
Mime-Version: 1.0
NNTP-Posting-Date: 23 Jun 1999 01:23:42 GMT
X-MIME-Autoconverted: from 8bit to quoted-printable by ncar.UCAR.EDU id JAA26643
Newsgroups: comp.std.c++

In article <oN6b3.1735$ec.32152@ndnws01.ne.mediaone.net>,
  "Dave Abrahams" <abrahams@mediaone.net> wrote:
> I'm trying to find out whether, when calling delete on a null pointer
value,
> the implementation is allowed to call operator delete anyway.

Presumably, "effects" is something similar to "observable behavior",
since the compiler can do absolutely anything that doesn't change
observable behavior.

On the other hand, is the required behavior for operator delete (in
18.4.1.1.) exhaustive?  Or is it legal for operator delete to have side
effects other than the required behavior?  (This is an interesting
question.  My own operator delete has the observable side effect of
removing the block from a list of allocated blocks; there is also a
function to dump the list.)

--
James Kanze                         mailto:
James.Kanze@dresdner-bank.com
Conseils en informatique orient=E9e objet/
                        Beratung in objekt orientierter
Datenverarbeitung
Ziegelh=FCttenweg 17a, 60598 Frankfurt, Germany  Tel. +49 (069) 63 19 86
27


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]



