Re: Exception handling
Re: Exception handling
- Subject: Re: Exception handling
- From: Jens Alfke <email@hidden>
- Date: Fri, 15 Jun 2018 11:30:01 -0700
> On Jun 14, 2018, at 5:58 PM, Quincey Morris
> <email@hidden> wrote:
>
> as someone already mentioned, NSExceptions can’t successfully cross
> dylib/framework boundaries.
They can, actually; there is no problem with this at the ABI/runtime level.
I think what you mean is that most libraries/frameworks don't make guarantees
about properly handling exceptions thrown into them, i.e. from a call into
external code. Some C++ libraries do guarantee this (especially libc++), and
even without guarantees a typical C++ lib using RAII will be relatively safe,
but Objective-C code usually isn't written to be exception-safe, and C code of
course can't be.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden