3 ms·
Objective-C is much closer to the 'just a pre-processor on top of C' idea than C++ is at this point. ANSI C is still valid, though to hook into Apple's CocoaTou
by pyre 17y ago
Objective-C is much closer to the 'just a pre-processor on top of C' idea than C++ is at this point. ANSI C is still valid, though to hook into Apple's CocoaTouch APIs I believe that you will be forced to write ObjC.
- ryanpetrich 17y agoYou can use plain C, it's just not pretty: void *result = objc_msgSend(target, sel_registerName("message:"), argument);
- rbanffy 17y agoMind you: not pretty, even for C standards ;-)
- varjag 17y agoDoes it support C99 constructs as well, or just ole' C90?
- pyre 17y agoI think so. I believe that it just converts all of the ObjC constructs into valid C. The ObjC constructs are different enough from C (being SmallTalk-inspired) that I don't think it's an issue. Take this with a grain of salt though, as I have minimal ObjC experience.