home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: 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
-
- 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
-