Ping: PR preprocessor/22168
Chris Lattner
clattner@apple.com
Fri Apr 25 08:42:00 GMT 2008
On Apr 24, 2008, at 4:29 PM, tromey@redhat.com wrote:
>>>>>> "Chris" == Chris Lattner <clattner@apple.com> writes:
>
> Chris> Thanks Tom. FWIW, #import should be treated as an extension
> in C/C++,
> Chris> but treated as part of the 'standard' in ObjC mode. The
> closest thing
> Chris> that ObjC has to a spec are the various books published on
> it, and all
> Chris> teach '#import'.
>
> Thanks. I will look at implementing this behavior, then.
>
> Also, I noticed that the cpp documentation still claims that #import
> is deprecated; at least, it is only documented in a section titled
> "Obsolete once-only headers". SNAFU I guess. I will try to fix this
> too.
It seems likely that when that was written, the author just didn't
think about (or know about) ObjC. Thanks a lot for working on this!
-Chris
More information about the Gcc-patches
mailing list