T
Tony
Well the subject says it all. Do I have to have it if I use classes in C++?
Tony
Tony
Tony said:Well the subject says it all. Do I have to have it if I use classes in C++?
Tony said:Well the subject says it all. Do I have to have it if I use classes in
C++?
Markus Moll said:1. Don't post your questions in the subject.
2. "The process of calling destructors for automatic objects constructed
on
the path from a try block to a throw-expression is called 'stack
unwinding.'"
I don't see how 2 and "do I have to have it if I use classes in C++" fit
together.
Tony said:Well I was wondering what the alternative there is, if any, in the face of
exception. Sure, if I say that all exceptions will be handled by terminating
the program, then I can rely on the OS to clean up and/or recover things
like memory and open files (in which case I don't need C++ exceptions at
all). But if I want to try and recover from an exceptional condition and
keep running the program, then the stack needs to be unwound.
I guess the real question is can I avoid using exceptions. I think that is
only possible if I terminate the program upon exceptional conditions. (?)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.