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


As almost everyone who actually uses inline assembly points out,
multiline strings are much cleaner, e.g. as Andi writes:

> 
> 	asm("	mov a,b
> 		mov c,d
> 		mov e,f"); 
> 
> 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.




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