As a preface, I am using eclipse 3.7.2 on Mint 12x64
Suppose you have the given fields:
tail = 10;
capacity = 10;
Now suppose you were to execute this statement:
tail++ %= capacity;
Why is the statement illegal? Is the statement ambiguous? To me it seems that it would evaluate in the an order such as:
- tail = modulus capacity
- tail increments by one