The 1 && part is being optimized out of the statement.this seems a rather dangerous and naive optimization to me, given that also this:
gets "optimized" as:$x = 1 && $y = 2; $x = 0 || $y = 2;
perhaps the p5p people should do something about it.$x = $y = 2; $x = $y = 2;
King of Laziness, Wizard of Impatience, Lord of Hubris
In reply to Re: Re: Short Circuit Operator and Hash Assignment
by dada
in thread Short Circuit Operator and Hash Assignment
by periapt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |