[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: operator overloading
From: |
Jeff Teunissen |
Subject: |
Re: operator overloading |
Date: |
Thu, 16 Mar 2006 12:56:23 -0500 |
User-agent: |
Mail/News 1.5 (X11/20060228) |
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/
- Re: operator overloading, (continued)
- Re: operator overloading, Sašo Kiselkov, 2006/03/06
- Re: operator overloading, Sheldon Gill, 2006/03/06
- Re: operator overloading, Philippe C.D. Robert, 2006/03/07
- Re: operator overloading, Ingolf Jandt, 2006/03/06
- Re: operator overloading, Jeff Teunissen, 2006/03/15
- Re: operator overloading, Ingolf Jandt, 2006/03/16
- Re: operator overloading,
Jeff Teunissen <=