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: RFA: Bring ObjC init/finalization into line with C


Neil Booth wrote:
> 
> Ziemowit Laski wrote:-
> 
> > Or, at least, "somewhat happier".  :)  As far as Apple's version is
> > concerned, this is just the opening salvo.  My ongoing work is on
> > depriving ObjC of its own control flow -- instead, pieces of ObjC
> > get called at crucial moments from C or C++ via a bunch of
> > maybe_objc_...()
> > hooks.
> 
> Hmm.  I'm not a big fan of those.  I was even trying to think of clean
> ways of getting rid of them.

If you think about it in terms of a long-term goal of having a
single "cc1uberalles" executable that does all C dialects, then
you need some sort of runtime test.  I tend to favor an explicit
"if (compiling_objc) objc_functionality()" construct over a set
of maybe_objc_... functions.  The "maybe" functions seem more like
an artifact of the current many-95%-redundant-executables strategy.

Stan


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