Re: Xcode 5 & Obj-C++
Re: Xcode 5 & Obj-C++
- Subject: Re: Xcode 5 & Obj-C++
- From: Uli Kusterer <email@hidden>
- Date: Thu, 30 Jan 2014 15:14:16 +0100
On 30 Jan 2014, at 12:49, email@hidden wrote:
> On 30 Jan 2014, at 00:42, Jens Alfke <email@hidden> wrote:
>> Anyone exposing a C++ API in a dynamic library is nuts, IMHO.
>
> What is it that makes C++ so unsuited to code sharing?
In short, method look-up depends on order of methods (so deleting a method breaks calls to all methods below it) and it suffers the fragile base class problem both for instance variables *and* methods.
With the classic runtime, ObjC only had fragile base classes for ivars, since method lookup goes by SEL. With the modern runtime (iOS or Mac-64-bit), not even that anymore.
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
_______________________________________________
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