[3.3] Followup to C++ forced unwinding

Mark Mitchell mark@codesourcery.com
Wed Apr 30 20:02:00 GMT 2003


On Wed, 2003-04-30 at 12:50, Zack Weinberg wrote:
> Mark Mitchell <mark@codesourcery.com> writes:
> 
> > (1) The libsupc++ bits make:
> >
> >       void f() throw () { read (...); }
> >   
> >     be handled just like:
> >
> >       void f() throw () { throw 3; }
> >  
> >     would.
> 
> Query, is there a way to write "this function may be cancelled but
> otherwise will not throw an exception"?  Notation like
> 
> void f() throw (cxxabi::thread_cancellation) { ... }

If we gave the thread cancellation exception a binding in C++, we could
do that.  

That might well be a sensible thing to do; it could always still be a
foreign exception for other languages, if they can't handle whatever
representation is used.

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC



More information about the Gcc-patches mailing list