Article View: comp.std.c++
Article #129constructors and exceptions
From: Ramon Pantin
Date: Fri, 21 Aug 1992 03:00
Date: Fri, 21 Aug 1992 03:00
16 lines
1079 bytes
1079 bytes
Could one of the ANSI-C++ folks that have "paper experience" :-) with how exception handling is supposed to work give a summary of how will an exception thrown from a constructor interact with objects previously constructed in the same "try" block. Also would you please illuminate us on how an exception thrown from the constructor of a derived object (which executes after the construction of the base object) interacts with the destruction of the base object. Will the destructor for the base object be called when the exception is thrown? What about an exception thrown from a signal handler (yuck!) that interrupted the construction of an object? Ramon Pantin
Technical Details
Message-ID:
<2286@devnull.mpd.tandem.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!decwrl!sdd.hp.com!cs.utexas.edu!devnull!rgpShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!decwrl!sdd.hp.com!cs.utexas.edu!devnull!rgp From: rgp@mpd.tandem.com (Ramon Pantin) Newsgroups: comp.std.c++ Subject: constructors and exceptions Message-ID: <2286@devnull.mpd.tandem.com> Date: 21 Aug 92 03:00:24 GMT Sender: news@devnull.mpd.tandem.com Organization: Tandem Computers, Micro-Products Division Lines: 16 Originator: rgp@seiko.mpd.tandem.com