Re: Does Cocoa layer translate Objective-C objects to C++?
Re: Does Cocoa layer translate Objective-C objects to C++?
- Subject: Re: Does Cocoa layer translate Objective-C objects to C++?
- From: Gwynne Raskind <email@hidden>
- Date: Mon, 4 May 2009 23:09:11 -0400
On May 3, 2009, at 8:17 PM, email@hidden wrote:
I am confused.
I was discussing with a developer about my desire to translate our C+
+ code (really simple and few methods and classes) to Objective-C,
for a Cocoa/Cocoa Touch software.
His answer has been: « I do not understand the reason, considering
that, after our translation to Objective-C, the Cocoa layer will
perform another translation to C++. »
Is it true? Cocoa (and/or Cocoa Touch) layer translates Objective-C
objects to C++?
What is the gain with Cocoa and Obejctive-C, if this is the truth?
I don't know where you got the idea that Cocoa will translate to C++;
this is complete gibberish. The Objective-C runtime and its objects
are all implemented in pure C with some support from the compiler; C++
is only involved if you write a flavor called Objective-C++, and even
then ObjC and C++ objects are two completely separate entities. If you
don't write in C++, you won't get C++.
-- Gwynne
_______________________________________________
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