The problem is that the assignment has a looser precedence than the ternary op.
Shouldn't then the OP's program had reported a syntax error?
In reply to Re^2: Question about ternary operator
by rovf
in thread Question about ternary operator
by merlinX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |