Thread View: comp.std.c++
2 messages
2 total messages
Started by bs
Mon, 05 Feb 1996 23:28
Exception spec seems ambigous to me..
Author: bs
Date: Mon, 05 Feb 1996 23:28
Date: Mon, 05 Feb 1996 23:28
33 lines
1533 bytes
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 ]
Re: Exception spec seems ambigous to me..
Author: David Byrden
Date: Thu, 08 Feb 1996 04:40
Date: Thu, 08 Feb 1996 04:40
22 lines
1350 bytes
1350 bytes
>> "An exception is considered handled upon entry to a handler."
>> (This text appears in every description of exceptions, including the
>> ARM.)
Thank you. My confusion was caused by 15.1.6
"...An exception is considered caught when initialization is complete for
the formal parameter of the corresponding catch clause..."
It seemed to me that an ellipsis did not fit the description "formal
parameter".
David
[ 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
]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads