Re: variable type cast

Adriaan van Os <[email protected]>
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
Tom Verhoeff wrote:

> In particular, casting is an operator that yields an rvalue, but not
> an lvalue.  Casting needs to done to the right of the assignment operator.

Not really. A casting at the right of the assignment operator is called a value type cast, a 
casting at the left of the assignment operator is called a variable type cast. The rules for both 
are a bit different, e.g. a value type cast may allow a cast to a different size (e.g. to a 
different size integer), a variable type cast is more strict.

Regards,

Adriaan van Os


_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.