home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1782 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.0 KB  |  30 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!stanford.edu!lucid.com!lucid.com!jss
  3. From: jss@lucid.com (Jerry Schwarz)
  4. Subject: Re: exceptions, unexpected() and muddle_on()
  5. Message-ID: <1992Dec15.012351.19062@lucid.com>
  6. Sender: usenet@lucid.com
  7. Reply-To: jss@lucid.com (Jerry Schwarz)
  8. Organization: Lucid, Inc.
  9. References:  <spuler.724363604@coral>
  10. Date: Tue, 15 Dec 92 01:23:51 GMT
  11. Lines: 17
  12.  
  13. In article <spuler.724363604@coral>, spuler@coral.cs.jcu.edu.au (David Spuler) writes:
  14. |> 
  15. |> My question is: what happens if a function installed by set_unexpected returns?
  16. |> Stroustrup says
  17. |> 
  18. |> "This will cause a normal return from a function detecting an unexpected
  19. |> exception. .... "
  20. |> 
  21.  
  22. The current x3j16/sc22 working paper says "The unexpected() function
  23. [i.e. the one set by set_unexpected] may not return, but it may throw
  24. an exception. Handlers for the exception will be looked for starting
  25. at the call of the function whose exception-specification was violated."
  26.  
  27. Thus the answer to the question is: undefined.
  28.  
  29.    -- Jerry Schwarz
  30.