in reply to Re^6: Why is the execution order of subexpressions undefined? (sane?)
in thread Why is the execution order of subexpressions undefined?

The optimizer notices that $w and $z must be equal...

A C or C++ compiler might be able to make that optimisation, but Perl--No way!

What if $w is tied? What if my Bit2 $w; and my Bigint $z;?

Bogus question. Next?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?

Replies are listed 'Best First'.
Re^8: Why is the execution order of subexpressions undefined? (sane?)
by theorbtwo (Prior) on Apr 18, 2005 at 12:33 UTC

    Note that tye mentioned perl6, which will allow you to mention the types of your variables, so that the compiler /can/ tell.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).