Article View: comp.std.c++
Article #1239Re: exceptions, unexpected() and muddle_on()
From: Jerry Schwarz
Date: Tue, 15 Dec 1992 01:23
Date: Tue, 15 Dec 1992 01:23
17 lines
1070 bytes
1070 bytes
In article <spuler.724363604@coral>, spuler@coral.cs.jcu.edu.au (David Spuler) writes: |> |> My question is: what happens if a function installed by set_unexpected returns? |> Stroustrup says |> |> "This will cause a normal return from a function detecting an unexpected |> exception. .... " |> The current x3j16/sc22 working paper says "The unexpected() function [i.e. the one set by set_unexpected] may not return, but it may throw an exception. Handlers for the exception will be looked for starting at the call of the function whose exception-specification was violated." Thus the answer to the question is: undefined. -- Jerry Schwarz
Technical Details
Message-ID:
<1992Dec15.012351.19062@lucid.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!lucid.com!lucid.com!jssReferences:
<spuler.724363604@coral>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!lucid.com!lucid.com!jss From: jss@lucid.com (Jerry Schwarz) Subject: Re: exceptions, unexpected() and muddle_on() Message-ID: <1992Dec15.012351.19062@lucid.com> Sender: usenet@lucid.com Reply-To: jss@lucid.com (Jerry Schwarz) Organization: Lucid, Inc. References: <spuler.724363604@coral> Date: Tue, 15 Dec 92 01:23:51 GMT Lines: 17