On Fri, Oct 12, 2007 at 11:30:11PM +0800, Herbert Xu wrote:
> Either it should assign in both cases or neither.
> 
> As far as POSIX is concerned, it defers to ISO C on this.  The
> semantics in ISO C is quite clear, that is, the assignment should
> not occur.

Sounds convincing to me.  I think there's an issue where the expression
is being tokenized before the decision on which side to evaluate is
made.  The tokenization result hinges on said decision.  By placing the
parentheses around it, it is then tokenized in the correct "context".
That's my initial theory anyway.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to