This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: #import (Re: [PATCH] Fix -save-temps...)
Zack Weinberg wrote:
>
> On Sat, Nov 03, 2001 at 02:19:20PM -0800, Stan Shebs wrote:
> >
> > Yup, OS X (or more accurately Darwin) has real inodes. In fact, I've
> > been using them to fix a #import problem for which I'll be submitting
> > a patch soon.
>
> You are aware that the party line from where I'm sitting is that
> #import should be abandoned in favor of #include used with wrapper
> #ifndefs?
Unfortunately somebody forgot to tell NeXT about a decade ago :-),
and so now #import is a) recommended for Objective-C still, and b)
assumed to work by nearly 5000 headers in Mac OS X.
In fact, there was a discussion about #import vs #include on the
GNUstep list a few weeks ago, with some people wondering why GCC
was deprecating standard ObjC coding practices. While I agree
conceptually with changing to #include, we haven't even gotten
the word out to everybody, let alone gotten them to change their
code.
Stan