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

Re: preprocessor bug: @ + MACRO does not work in gcc-3.0


Ovidiu Predescu wrote:-

> The @ symbol is actually part of the Objective-C language, it's used
> to create Objective-C constant string objects. So there is nothing to
> fix in GNUstep, it is simply making use of a feature in the language.

You seem to be saying that "@" is a separate token, and should be treated
as such in the preprocessor.  Is that what you mean?  That means that
the front end needs to be changed to treat them as separate tokens, too.
 
> One more thing about the @ syntax, it also allows for things like
> this:
> 
> id string = @"this is "
> 	    @"a long "
> 	    @"string.";
> 
> The value of `string' is equivalent as if it was declared with:
> 
> id string = @"this is a long string.";
> 
> the compiler effectively concatenating the strings together.

Right, but we already get that right (I think), because that's done
in the front ends (at present at least) which see CPP_OSTRING tokens.

Neil.


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