home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / std / cplus / 1096 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.0 KB

  1. Path: sparky!uunet!olivea!decwrl!sdd.hp.com!cs.utexas.edu!devnull!rgp
  2. From: rgp@mpd.tandem.com (Ramon Pantin)
  3. Newsgroups: comp.std.c++
  4. Subject: constructors and exceptions
  5. Message-ID: <2286@devnull.mpd.tandem.com>
  6. Date: 21 Aug 92 03:00:24 GMT
  7. Sender: news@devnull.mpd.tandem.com
  8. Organization: Tandem Computers, Micro-Products Division
  9. Lines: 16
  10. Originator: rgp@seiko.mpd.tandem.com
  11.  
  12.  
  13. Could one of the ANSI-C++ folks that have "paper experience" :-)
  14. with how exception handling is supposed to work give a summary of how
  15. will an exception thrown from a constructor interact with objects
  16. previously constructed in the same "try" block.
  17.  
  18. Also would you please illuminate us on how an exception thrown from
  19. the constructor of a derived object (which executes after the construction
  20. of the base object) interacts with the destruction of the base object.
  21. Will the destructor for the base object be called when the exception
  22. is thrown?
  23.  
  24. What about an exception thrown from a signal handler (yuck!) that
  25. interrupted the construction of an object?
  26.  
  27. Ramon Pantin
  28.