This is the mail archive of the gcc@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: #import, #pragma once to be removed in 3.4


Matt Austern <austern@apple.com> writes:

> I think we'd really better distinguish between C, C++, and Objective C.
>
> For C and C++, you're probably right.  #import is just one mechanism
> among many, there are alternatives, and there's no reason to encourage
> people to write nonportable code by using a GNU extension.

Sure...

> Objective C is a different matter entirely.  #import is the documented
> mechanism for header inclusion in Objective C.  To the extent that there
> is a standard for Objective C, #import is part of it.  We shouldn't just
> change that language definition.

And why not?  From my point of view, this has been a deprecated
feature of Objective C as well as C/C++ since before I took over the
preprocessor.

zw


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