Ingolf Jandt wrote:
>> 
>> Objective-C objects/classes cannot take part of C++ features in ObjC++.
>
> You do can mix the code. The documented limitation just means you can't
> create ObjC child classes of C++ classes, get selectors for C++ methods
> and such things.

Of course you can "mix the code", that's the whole point. You can't mix the
_features_. ObjC objects can't be templates, you can't send them to iostreams,
they have to have "C" linkage, you can't throw an exception from C++ and catch
it in ObjC or vice versa, ObjC objects can't interact with operator
overloading, and so on. An Objective-C++ compiler is a normal C++ compiler
with the syntax and runtime additions from Objective-C. It works because all
of the additional syntax is illegal C++ (just as with C). :)

-- 
| Jeff Teunissen  -=-  Pres., Dusk To Dawn Computing  -=-  deek @ d2dc.net
| GPG: 1024D/9840105A   7102 808A 7733 C2F3 097B  161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project        http://www.quakeforge.net/
| Specializing in Debian GNU/Linux              http://www.d2dc.net/~deek/
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to