[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libobjc] May I tweak objc-api.h?
From: |
Joern Rennecke |
Subject: |
Re: [libobjc] May I tweak objc-api.h? |
Date: |
Mon, 9 Feb 2004 14:34:39 +0000 (GMT) |
> > The change breaks all user code that uses class, but sometimes an easy
> > to describe system is easier to fix than an insanely complex one.
>
> But libobjc is source and binary compatible from 2.95.3 (and maybe
> before) up to 3.5.0.
> Since this is a source level change, I am going to say this should be
> conditional on
> C++/Objc++ as it will only effect new source and not old ones.
>
> > The X11 folks grappled with this, gosh, a long long time ago. Time to
> > enter the 90s. :-)
>
> Well since class is not a reserved word in C at all, we are in the
> 1990s with C99 :-).
>
> Welcome to almost compatible language hell.
Well, we can just take advantage of anonymous unions in GNU99 and put
both class and super_class inside for C. That allows up to support
both old C code that uses class as well as new code which doesn't know
if it's C or C++ or ObjC code and uses super_class.
- Re: [libobjc] May I tweak objc-api.h?, (continued)
- 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
Re: [libobjc] May I tweak objc-api.h?, Alexander Malmberg, 2004/02/06
Re: [libobjc] May I tweak objc-api.h?, Mike Stump, 2004/02/06
Re: [libobjc] May I tweak objc-api.h?, Gabriel Dos Reis, 2004/02/06