[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libobjc] May I tweak objc-api.h?
From: |
Nicola Pero |
Subject: |
Re: [libobjc] May I tweak objc-api.h? |
Date: |
Fri, 6 Feb 2004 23:48:57 +0000 (GMT) |
> >>>> So, do you think it would be OK to rename 'class' above to, say,
> >>>> 'super_class'?
> >>>
> >>> This field is used in GNUstep. What do you propose that code should do
> >>> to work with both versions? Change the name only if __cplusplus is
> >>> defined?
> >>
> >> Change the name unconditionally... please? :-)
> >
> > Only if you can give us a really good answer to the first question. :)
> >
> > 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 ?
Then GNUstep can check for the ObjC runtime version number, and use class
or super_class depending on the ObjC runtime version number.
- [libobjc] May I tweak objc-api.h?, Ziemowit Laski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Andrew Pinski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Alexander Malmberg, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Ziemowit Laski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Alexander Malmberg, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Ziemowit Laski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Alexander Malmberg, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Greg Parker, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Markus Hitter, 2004/02/07
- Re: [libobjc] May I tweak objc-api.h?,
Nicola Pero <=
- Re: [libobjc] May I tweak objc-api.h?, Ziemowit Laski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Nicola Pero, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Ziemowit Laski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Andrew Pinski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Ziemowit Laski, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Kaelin Colclasure, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Nicola Pero, 2004/02/06
- Re: [libobjc] May I tweak objc-api.h?, Kaelin Colclasure, 2004/02/07
Re: [libobjc] May I tweak objc-api.h?, Mike Stump, 2004/02/06