RE: [sv-ec] "string literal" and "literal string"

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Wed Nov 15 2006 - 08:13:56 PST
Shalom,

Maybe it should be "cast to a packed or unpacked array type".  Consider
from 4.14 --

   "In a static cast, the expression to be cast shall be enclosed in
parentheses that are prefixed with the casting type and an apostrophe.
If the expression is assignment compatible with the casting type, then
the cast shall return the value that a variable of the casting type
would hold after being assigned the expression."

-- Brad 

[ In reply to http://www.eda-stds.org/sv-ec/hm/3796.html .]

________________________________

From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
Bresticker, Shalom
Sent: Wednesday, November 15, 2006 4:54 AM
To: sv-ec@eda-stds.org
Subject: [sv-ec] "string literal" and "literal string"


 

The term "string literal" occurs 42 times in 1800.

"literal string" appears 4 times, in 3.1, 3.6 (next to last para.), 4.7
(para. 3), and 23.2 (page bottom).

On the face of it, they appear to refer to the same thing.

But if so, this statement from 3.6 appears to be a tautology:

"String literals can also be cast to a packed or unpacked array, which
shall follow the same rules as assigning a literal string to a packed or
unpacked array."

Can anyone explain?

Thanks,

Shalom

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033

I don't represent Intel 

 
Received on Wed Nov 15 08:18:41 2006

This archive was generated by hypermail 2.1.8 : Wed Nov 15 2006 - 08:19:02 PST