home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
- 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
-