This is the mail archive of the gcc-patches@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 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.



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