This is the mail archive of the gcc@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: [libobjc] May I tweak objc-api.h?



On Feb 6, 2004, at 12:52, Ziemowit Laski wrote:


Specifically,

typedef struct objc_super {
id self; /* Id of the object sending
the message. */
Class class; /* Object's super class. */
} Super, *Super_t;


As you may guess, C++ is not too crazy about using 'class'
as an identifier.  In the past, I hacked Apple's ObjC++
compiler to accept this. :-(  Now, though, I'm working on
putting ObjC++ into the FSF, where it should behave more sanely.

(Turns out that our NeXT headers have exactly the same problem,
and I'm hoping to be able to tweak them as well.)

So, do you think it would be OK to rename 'class' above to, say, 'super_class'?

This is okay with me, just make sure that you tweak it every where it is referenced.


Thanks, Andrew Pinski


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