🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2732

Re: Exceptions in derived class destructors

#2732
From: John Max Skaller
Date: Sat, 25 Nov 1995 19:20
30 lines
1893 bytes
clamage@Eng.sun.com (Steve Clamage) wrote:
>Dick Menninger <Dick.Menninger@daytonoh.attgis.com> writes:
>
>You can exit a destructor via an exception safely only if you know
>that no exception is in the process of being handled, or if you
>know that the current object is not auto. 

I do not believe the latter case is permitted.

I understand that an attempt has been made to
allow a caught exception (dynamically)
in the body of a destructor, but as far as I can
see this attempt has failed (I certainly
haven't seen a coeherent model for this
presented in a paper).

(that is, the working paper either contradicts itself
at present, or is terminologically muddled, or both :-)

-- 
John Max Skaller               voice: 61-2-566-2189
81 Glebe Point Rd              fax:   61-2-660-0850
GLEBE NSW 2037                 email: maxtal@suphys.physics.oz.au
AUSTRALIA                      email: skaller@maxtal.com.au



[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <497m6d$ho2@oznet03.ozemail.com.au>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <48m6b8$2ll@engnews1.eng.sun.com> <DID3FH.12F@falcon.daytonoh.attgis.com> <48rm4e$1eb@engnews1.eng.sun.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: John Max Skaller <maxtal@suphys.physics.su.oz.au>
Newsgroups: comp.std.c++
Subject: Re: Exceptions in derived class destructors
Date: 25 Nov 1995 19:20:44 GMT
Organization: MAXTAL
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <497m6d$ho2@oznet03.ozemail.com.au>
References: <48m6b8$2ll@engnews1.eng.sun.com> <DID3FH.12F@falcon.daytonoh.attgis.com> <48rm4e$1eb@engnews1.eng.sun.com>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nntp-Posting-Host: slsyd4p15.ozemail.com.au
X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
Content-Length: 918
Originator: clamage@taumet