Re: Integrating C++ into Swift
Re: Integrating C++ into Swift
- Subject: Re: Integrating C++ into Swift
- From: Uli Kusterer <email@hidden>
- Date: Sat, 13 Jun 2015 12:34:35 -0700
> On 13 Jun 2015, at 12:26, Quincey Morris <email@hidden> wrote:
>
> On Jun 13, 2015, at 12:01 , Uli Kusterer <email@hidden> wrote:
>>
>> Right now, I get the impression that, given I’d have to use ObjC for bridging anyway, I might as well leave the GUI layer code in ObjC.
>
> How are you currently bridging from Obj-C to C++? In theory (I guess) every line of Obj-C code that you have now could be replaced by a Swift equivalent that’s 100% interoperable. Is there Obj-C++ in there somewhere?
Yeah, using ObjC++ right now. Swift does not have any way to talk to C++. Best on I know to do is go via C (e.g. by creating C++ methods declared as 'extern “C”’) or ObjC (by creating an outwardly ObjC class that is ObjC++ internally).
Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de
_______________________________________________
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