Re: [sv-bc] types of casting

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Aug 10 2006 - 08:15:40 PDT
Bit-stream casting is just a kind of static casting. It is tried when
the casting expression is not assignment-compatible with the casting
type.
 
"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. If the expression is not
assignment compatible with the casting type, then if the casting type is
an enumerated type, the behavior shall be as described as in 4.15, and
if the casting type is a bit-stream type, the behavior shall be as
described in 4.16."

 

-- Brad


________________________________

From: owner-sv-bc@eda-stds.org [mailto:owner-sv-bc@eda-stds.org] On
Behalf Of Bresticker, Shalom
Sent: Thursday, August 10, 2006 1:59 AM
To: sv-bc@eda-stds.org
Subject: [sv-bc] types of casting


  

Hi,

What are the essential differences between static casting as described
in 4.14 and bit-stream casting as described in 4.16 ? The differences
don't seem to be clearly described.

 

Thanks,

Shalom

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033

I don't represent Intel 

 



image001.gif
Received on Thu Aug 10 08:15:50 2006

This archive was generated by hypermail 2.1.8 : Thu Aug 10 2006 - 08:15:55 PDT