This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: ObjC++ template expansion -- Part 1



On 14 Sep 2004, at 0.04, Kai Henningsen wrote:


mark@codesourcery.com (Mark Mitchell) wrote on 13.09.04 in <4145F860.3000404@codesourcery.com>:

language feature.  Objective-C++ seems to want to say "these two types
are the same (in that you can intra-convert between them) but also not
the same (in the sense that you have to know which one you have)."  If
that's the case, then I think we've got the wrong approach here.  The

It is a little bit (but not exactly) like multiple inheritance,

Yes, the usage of ObjC protocols is sort of like C++ multiple inheritance;
the protocols themselves can be thought of as abstract base classes with no
data members (and no member function definitions, only pure virtuals).


A much simpler way to describe ObjC protocols is to say that they are like
Java interfaces. In fact, I believe the latter were inspired by the former.


--Zem
--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]