This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [libobjc] May I tweak objc-api.h?
- From: Nicola Pero <nicola at brainstorm dot co dot uk>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: Alexander Malmberg <alexander at malmberg dot org>, <discuss-gnustep at gnu dot org>, <objc-language at lists dot apple dot com>, GCC List <gcc at gcc dot gnu dot org>
- Date: Sat, 7 Feb 2004 00:02:05 +0000 (GMT)
- Subject: Re: [libobjc] May I tweak objc-api.h?
> >>> Again: What do you propose that code should do to work with both
> >>> versions?
> >>
> >> If you rename 'class' to 'super_class' and reference it as
> >> 'super_class',
> >> then this will work in all four of our C flavors, so I'm not sure I
> >> understand
> >> your question... Or are you suggesting that we do something like
> >>
> >> #ifdef __cplusplus
> >> Class super_class;
> >> #else
> >> Class class;
> >> #endif
> >>
> >> ? While possible, I'd submit that this approach will be more
> >> confusing
> >> in the long run.
> >
> > Yes - it would be messy and confusing. Why don't you just rename it and
> > increase the ObjC runtime version number ?
Why ? That is what it is there for :-)