bump operators. How do we size the '1'


Subject: bump operators. How do we size the '1'
From: John Sanguinetti (jws@forteds.com)
Date: Mon Jul 30 2001 - 19:23:10 PDT


>Page 21 - Anders: bump operators. How do we size the '1'. For example what
>happens to the 1 the case of overflow. Statement needed in doc on the
>"size" of the 1. Suggested wording: The resultant size of the operator is
>the size of the operand.
>Action - Stu to include wording in doc.
>

After thinking about this for more than 5 seconds, I don't believe
there is an issue here. Contrary to what I said during the meeting,
it doesn't really matter what size the constant one is, since the
only natural interpretation is that auto-increment and auto-decrement
(better terms than "bump operators") are self-determined. If a++
means a = a + 1 the left context is a, so the size will be the size
of a, regardless of what size the constant 1 is. This only needs an
entry in the size table that says the result of auto-increment and
auto-decrement is self-determined.

John



This archive was generated by hypermail 2b28 : Mon Jul 30 2001 - 19:25:15 PDT