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


On Mon, Mar 19, 2001 at 08:58:47AM -0800, Joe Buck wrote:
> 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.

That would be fine for me.


(although I guess the state tracking in the lexer would be a bit more
complicated than you think. There can be keywords between asm and the
opening brace, and inside the braces there can be statement expressions
and other nasty things which make it impossible to search for ';' as 
delimeter. The lexer would need to keep track of brace nesting)  


-Andi


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