This is the mail archive of the gcc@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: Multi line string literals are deprecated considered bad


Neil Booth <neil@daikokuya.demon.co.uk> writes:

| Joe Buck wrote:-
| 
| > > I think you cannot depricate it without giving an easily writable alternative
| > > to the assembler users (and sorry, your proposal is not easily usable).
| > 
| > Agreed.  New proposal: deprecate multiline strings EXCEPT in asm directives.
| > Since asm is a keyword, it's easy enough to have it flip a mode bit in the
| > lexer to disable the error or warning.  Then we object to multiline
| > strings in all contexts except asm.
| 
| This isn't a reasonable demand to put on CPP; either we deprecate
| multi-line strings or we keep them.  CPP has no idea if it's in an asm
| construct, and nor should it.

Agreed.

[...]

| So, in view of the above, I would still like to deprecate them.  However,
| if the mood really has swung sufficiently back towards the status quo,
| I would be willing to revert the patches.

I'd rather we deprecate them if its makes life easier for CPP.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


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