This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: catch(...) and forced unwind


Mark Mitchell <mark@codesourcery.com> writes:

| > There's still the question of what to do with pthread_exit.
| 
| The consistent thing would seem to be to have it throw
| "posix::thread_exit".  (This, by the way, is analagous to the Python
| idea that "return" statements are equivalent to throwing a special kind
| of exception.)

Yeah, that might be fine for Python and other languages like ML that
use exceptions to return value.  But, I would strongly recommend
against introducing that slippery slope in C++, C++ libraries.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]