From: Luke D. <cod...@ho...> - 2003-07-21 03:25:24
|
----- Original Message ----- From: "Danny Smith" <dan...@ya...> To: <min...@li...> Sent: Monday, July 21, 2003 10:07 AM Subject: Re: [Mingw-users] MingW and the #import preprocessor directive... > --- Greg Chicares wrote: > John Brown wrote: > > > > > > >Jonathan Wilson wrote: > > > > > > > > > > Are there any plans to make mingw recognize and use the #import > > > > > preprocessor directive > > > > > > >Greg Chicares wriote: > > > > > > >http://search.gmane.org/search.php?query=import+directive&email=&group=gman e.comp.gnu.mingw.user&sort=date > > > > > > Where does this link say whether supporrt for #import is planned? > > > > Clicking through the first link to > > > > http://article.gmane.org/gmane.comp.gnu.mingw.user/6779/ > > > > I see one of the project administrators saying > > > > "this feature is not supported by MinGW" > > > > which suggests there's little chance that this > > nonstandard feature will be supported. Perhaps > > other search results say more. > > > You might search GCC doc's themselve (in cpp.info) and find out what they have to say: > > " In the Objective-C language, there is a variant of `#include' called > `#import' which includes a file, but does so at most once. If you use > `#import' instead of `#include', then you don't need the conditionals > inside the header file to prevent multiple inclusion of the contents. > GCC permits the use of `#import' in C and C++ as well as Objective-C. > However, it is not in standard C or C++ and should therefore not be > used by portable programs." > > " `#import' is not a well designed feature. It requires the users of > a header file to know that it should only be included once. It is much > better for the header file's implementor to write the file so that users > don't need to know this. Using a wrapper `#ifndef' accomplishes this > goal." > > Danny I assume you are pointing this out as a reason why MS #import will not be implemented in GCC? I'm just saying because this Objective-C #import is completely unrelated to the MSVC meaning, but some users may not realise this. Luke |