Topic: Exceptions in "non-exitable" functions?


Author: bwh@beach.cis.ufl.edu (Brian Hook)
Date: 06 Apr 1994 17:44:40 GMT
Raw View
How does the standards committee look upon exceptions generated in
functions that cannot be exited (i.e. their stack can't be unwound in a
straightforward manner) cleanly?

The biggest one that comes to mind are interrupt service routines and what
not (some would argue C++ isn't the greatest for this, but still....).
While ISRs are system/compiler dependent, it would seem that an ISR that
either threw an exception or failed to handle a thrown exception would
cause a system crash....would a default catch handler be required in this
case?

Brian
--
+---------------------------------------------------------------+
| Brian Hook            | Specializing in real-time 3D graphics |
| Box 90315             |---------------------------------------|
| Gainesville, FL 32607 | Internet: bwh@cis.ufl.edu             |
+---------------------------------------------------------------+