Leopold Toetsch wrote:
You're right. I just dived through the archives and found that chained operators are an exception. Sorry for missing that.Rod Adams <[EMAIL PROTECTED]> wrote:
Well
if 10 < $j < 1 { ... }
if 10 < $j { if $j < 1 { ... }}
Could easily wind up with the same opcodes.
No. In the first case $j is evaluated just once. In the second case it's
evaluated twice.
Which can be a mess explaining to someone how
if 0 < $x && $x < 10 {...}
can be true when
if 0 < $x < 10 {...}
is false.
Though I suppose if we can extend this to a general rule of "if it only appears once, it can only be threaded once", it makes a certain amount of sense.
-- Rod Adams