🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Exception spec seems ambigous to me..

#3260
From: bs
Date: Mon, 05 Feb 1996 23:28
33 lines
1533 bytes
Article 15941 of comp.std.c++:


David Byrden <100101.2547@compuserve.com> writes

 > These questions do not seem to be unambigously answered by the September 
 > draft;
 > 
 > Is an exception considered caught when it is handled by a handler
 > whose exception-declaration is the ellipsis ... ? 

Yes: sec 15.3:

	"An exception is considered handled upon entry to a handler."

(This text appears in every description of exceptions, including the ARM.)

 > Will  uncaught_exception()  return false when you are in such a handler?

Yes. Immediately upon entry into a handler, there can be no uncaught
exception (you just caught it).

 > Most importantly, can such a handler call functions which themselves
 > thrown and catch exceptions internally?

Certainly. There are no language-imposed restrictions on what code you
can write in a handler.

	- Bjarne
[ 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://reality.sgi.com/employees/austern_mti/std-c++/policy.html
]
Technical Details
Message-ID: <199602052120.OAA20187@ncar.ucar.EDU>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: bs@research.att.com
Newsgroups: comp.std.c++
Subject: Exception spec seems ambigous to me..
Date: 5 Feb 1996 23:28:55 GMT
Organization: ?
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <199602052120.OAA20187@ncar.ucar.EDU>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
Content-Length: 1188
X-Lines: 42
Originator: clamage@taumet