Jason Attin wrote:
I didn't quite understand the explanation which says that it's effectively a metter of operator precedence.
Well, basically, it is.... meaning after the compiler applies the precedence (and also, associatively), since the ternary operator has higher precedence than the assignment (and also, assignment has right to left assoc), this expression...
is basically the same as ...
and of course, this statement is invalid because the second assignment has a value on the left hand side (instead of a variable).
So...
Jason Attin wrote: leaving us with final (it's the value of tiger that we're trying to copy into the variable statement ). So basically we're trying to assign is Bigger to another literal? is that it?
Yes. Assigning a value to another value is not allowed. And your analogy worked...
Henry