[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: objc native exceptions
From: |
Andrew Pinski |
Subject: |
Re: objc native exceptions |
Date: |
Fri, 27 Jun 2008 08:37:50 -0700 |
On Fri, Jun 27, 2008 at 8:35 AM, Richard Frith-Macdonald <address@hidden> wrote:
> I was wondering if there was any good reason why gnustep-make doesn't enable
> native exceptions by default if the compiler supports it.
> I think the answer is that we can't readily install a default handler for
> uncaught exceptions or support NSSetUncaughtExceptionHandler() with the
> current state of the compiler/runtime as it does not provide us with any API
> to deal with an exception thrown outside of a @try block.
>
> Would it be OK to add that functionality to the runtime in
> objc_exception_throw() with two new functions something like this:
>
Yes in fact it was on my list of things TODO, see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466 :).
Thanks,
Andrew Pinski
Re: objc native exceptions, David Chisnall, 2008/06/30