From: Shalom Bresticker (Shalom.Bresticker@motorola.com)
Date: Thu Sep 25 2003 - 07:30:00 PDT
Precedence: bulk
The following reply was made to PR errata/485; it has been noted by GNATS.
From: Shalom Bresticker <Shalom.Bresticker@motorola.com>
To: Steven Sharp <sharp@cadence.com>
Cc: etf-bugs@boyd.com
Subject: Re: errata/485: Multi-line string literals?
Date: Thu, 25 Sep 2003 18:15:28 +0300
Steven Sharp wrote:
> In NC-Verilog at least, this is not a string continuation. Rather, the
> backslash has escaped the newline, so that it is treated as a character
> of the string rather than its normal role of terminating the line. The
> result has a newline embedded in the string. Note that this is not an
> important capability, since you could get the same effect by putting \n
> in the string.
And VCS does the same thing.
That is, you get an embedded newline, not just a continuation.
This is different from what we talked about earlier,
and different from the example below.
Shalom
> BTW, it is possible to get the desired effect using an explicit concatenation:
>
> $display
> (
> {"Humpty Dumpty sat on a ",
> "wall. Humpty Dumpty had a great fall."}
> )
--
Shalom Bresticker Shalom.Bresticker@motorola.com
Design & Reuse Methodology Tel: +972 9 9522268
Motorola Semiconductor Israel, Ltd. Fax: +972 9 9522890
POB 2208, Herzlia 46120, ISRAEL Cell: +972 50 441478
This archive was generated by hypermail 2.1.4
: Thu Sep 25 2003 - 07:33:23 PDT
and
sponsored by Boyd Technology, Inc.