[sv-bc] multi-line string literals

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Mar 19 2007 - 02:41:17 PDT
  

Mantis 1064, which started as a question about 1364, asks what is the
behavior of

$display
(
"Humpty Dumpty sat on a \
wall. Humpty Dumpty had a great fall."
);

Is it legal, and if so, what is the behavior?

Regardless of 1364, 1800 says in 3.6:

A string literal must be contained in a single line unless the new line
is immediately preceded by a \ (back

slash). In this case, the back slash and the new line are ignored.

 

That is, it is legal and should print

Humpty Dumpty sat on a wall. Humpty Dumpty had a great fall.

However, in practice, as mentioned in 1064, and in the tools I have
seen,

what gets printed is

Humpty Dumpty sat on a 
wall. Humpty Dumpty had a great fall.

So either all those tools are in error, or we should change 1800 to
accommodate the de-facto behavior.

Thanks,

Shalom

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033 

 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



image001.gif
Received on Mon Mar 19 02:43:16 2007

This archive was generated by hypermail 2.1.8 : Mon Mar 19 2007 - 02:43:58 PDT