Re: Arithmetic shift operators: signedness

From: Steven Sharp (sharp@cadence.com)
Date: Mon May 20 2002 - 13:16:12 PDT


Precedence: bulk

>Question on "The
>behavior of sign-conversion matches the behavior of width-conversion":
>
>As far as I can see, an expression width is determined also by its LHS whereas
>its signedness is not. True?

True. Section 4.5.1 explicitly states that the type does not depend on
the LHS, presumably to make it clear that this is an exception to the
similarity with width-conversion. I don't know the rationale, so I won't
try to explain it.

Steven Sharp
sharp@cadence.com



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:55:37 PDT and
sponsored by Boyd Technology, Inc.