4 ms·
> Support for linking against Objective C code This is the most exciting part for me! Although I wish they didn't skim so much on the technical detail here.
by sdegutis 13y ago
> Support for linking against Objective C code
This is the most exciting part for me! Although I wish they didn't skim so much on the technical detail here.
- Laremere 13y agoIf it's anything like 1.2's c++ support, you have to write a wrapper in pure c, because that's what Go supports. So Go includes the C header files using Cgo, and you separately compile (and tell cgo to link) your c code which calls your objective c code.
- melling 13y agoYes, but it's x86 code so it won't work on iOS. It would be cool if Go could become an option for Android and iOS development.
- enneff 13y agoGo does compile to ARM and does run on phones. It works on Android phones (linux/arm) out of the box, and it has been made to work on iOS (darwin/arm) but it hasn't been merged with the core: https://bitbucket.org/minux/goios/wiki/Home https://bitbucket.org/minux/goios/wiki/Home
- skj 13y agoThat seems strange to me...for go.wde I made a cocoa backend that linked against an ObjC framework. I don't understand what special things need to happen that require any extra 'support'.