#import, #pragma once to be removed in 3.4
Zack Weinberg
zack@codesourcery.com
Thu Feb 6 21:59:00 GMT 2003
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
More information about the Gcc
mailing list