in reply to Re^10: Operator overloading with returning lists?
in thread Operator overloading with returning lists?
EXPR1 is evaluated before some_sub is called. And since perl5 doesn't have lazy evaluation, and unlike to get it any time soon, it's going to stay like this for a while.some_sub(EXPR1 + EXPR2)
But that has little to do with precedence (or at least not with the precedence people talk about when talking about operator precedence); the only 'rule' that's in effect is that arguments (and parameters) are evaluated before the operators/subs themselves.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: Operator overloading with returning lists?
by LanX (Saint) on Dec 01, 2008 at 16:58 UTC |