Hi!
> I think the precedence of left and right associative operands can't
be > compared. The switch between associativities already separates the
> expression (if it could be explained this way).
Yes, this behaviour confused me. This is not common in other programming
languages:
o C : invalid lvalue in assignment
o Java : required: variable
found : value
o JavaScript: invalid assignment left-hand side (Mozilla)
syntax error (Internet explorer)
But for me it isn't egxactly clear how the evaluation order was
calculated (why doesn't the first = operator executed before &&). Does
anybody know for example a flowchart, how it is implemented in PHP?
Felho
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php