This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: #import, #pragma once to be removed in 3.4
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 06 Feb 2003 13:59:26 -0800
- Subject: Re: #import, #pragma once to be removed in 3.4
- References: <FDC825D9-3A1B-11D7-A912-000393B2ABA2@apple.com>
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