Which Mac models use the new 64-bit Objective-C ABI?
Which Mac models use the new 64-bit Objective-C ABI?
- Subject: Which Mac models use the new 64-bit Objective-C ABI?
- From: "Påhl Melin" <email@hidden>
- Date: Thu, 20 Nov 2008 15:50:09 +0100
I'm very tempted to use the new 64-bit Objective-C ABI in my next
project. Primarily because of the improved interoperability with C++
destructors, that are now called when unwinding Objective-C exceptions
and should make it possible to use RAII designs in Objective-C++
programs.
If I were to require the use of the 64-bit ABI in my next project,
which mac models would the application run on? And is it possible to
detect at runtime if I'm running the old 32-bit ABI or the new 64-bit
to enable a fallback on non-64-bit models?
Best Regards,
Påhl Melin
>From the "Objective-C Runtime Release Notes for Mac OS X v10.5" :
"In 64-bit, C++ exceptions and Objective-C exceptions are
interoperable. In particular, C++ destructors and Objective-C @finally
blocks are honored when unwinding any exception, and default catch
clauses—catch (...) and @catch (...)—are able to catch and re-throw
any exception."
_______________________________________________
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