Re: php compiler
| From: | Hodicska Gergely | Date: | Sun, 31 Oct 2004 23:40:52 +0000 |
| Subject: | Re: php compiler | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200791@lists.php.net to get a copy of this message | ||
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