This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Multi line string literals are deprecated considered bad
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: Multi line string literals are deprecated considered bad
- From: Andreas Schwab <schwab at suse dot de>
- Date: 20 Mar 2001 10:54:36 +0100
- Cc: dewar at gnat dot com, ak at suse dot de, jbuck at racerx dot synopsys dot com,carlo at alinoe dot com, gcc at gcc dot gnu dot org
- References: <20010319201605.928A3F28A4@nile.gnat.com><20010319132735H.mitchell@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
|> >>>>> "dewar" == dewar <dewar@gnat.com> writes:
|>
|> dewar> <<Agreed. New proposal: deprecate multiline strings EXCEPT
|> dewar> in asm directives. Since asm is a keyword, it's easy
|> dewar> enough to have it flip a mode bit in the lexer to disable
|> dewar> the error or warning. Then we object to multiline strings
|> dewar> in all contexts except asm.
|> >>>
|>
|> dewar> Seems reasonable, after all asm is hardly an ISO standard
|> dewar> feature :-)
|>
|> It is in C++, FWIW. (Not the extended GCC version, but basic asm ("...");)
Likewise in C99.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5