This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: #import and PCH
- From: Geoffrey Keating <geoffk at apple dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, Neil Booth <neil at daikokuya dot co dot uk>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Jan 2003 13:35:01 -0800
- Subject: Re: #import and PCH
On Friday, January 24, 2003, at 05:07 PM, Stan Shebs wrote:
The manual is on your machine already, PDF and HTML in
/Developer/Documentation/Cocoa/ObjectiveC. Page 205 of the PDF
file says "identical to #include, except that it won't include the
same file more than once", and that's about it for description.
For those on gcc-patches who don't have access to this documentation,
here are all the places where it mentions #import in text:
The interface is usually included with the #import directive:
#import "Rectangle.h"
This directive is identical to #include, except that it makes sure
that the same file is never included more than once. It’s therefore
preferred and is used in place of #include in code examples throughout
Apple documentation.
#import Imports a header file. This directive is identical to
#include, except that it won’t include the same file more
than once.
So, it doesn't really help very much.