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: Stan Shebs <shebs at apple dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 06 Feb 2003 14:07:54 -0800
- Subject: Re: #import, #pragma once to be removed in 3.4
- References: <87lm0tjfsg.fsf@egil.codesourcery.com>
Zack Weinberg wrote:
So we had a discussion of the problems that PCH poses for #import,
which expanded to a discussion of the problems of #import and
#pragma once generally, which then pretty much wound down without any
middle ground being found between 'there must be some way to fix it'
and 'no, sorry, there isn't'. I think that an executive decision is
required at this point, which falls to me as cpplib maintainer.
Accordingly: #import and #pragma once will be removed from FSF GCC in
3.4. I will shortly send a patch to gcc-patches to implement that.
Although I'm sympathetic to your desires, you can't unilaterally
decide not to support a documented feature of Objective-C. (Even
the existing deprecation message was ill-advised - users have never
taken it seriously, since it is not consistent with either the
written description of the language or with standard practice in
ObjC shops.)
Let's focus on changing the language first, either to drop #import
from the definition, or to define it portably, before deciding how
to patch GCC.
Stan