in reply to Re^6: eval order of args to a sub
in thread eval order of args to a sub
So your saying that if operation evaluation order (associativity) is specified, but operand evaluation order is not specified,
$result = foo() - bar() - baz() - moo();
could be evaluated as
$anon1 = moo(); $anon2 = baz(); $anon3 = bar(); $anon4 = foo(); $result = (($anon4 - $anon3) - $anon2) - $anon1;
I suppose you're right and it doesn't violate the definition of associativity, but how odd!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: eval order of args to a sub
by shmem (Chancellor) on Jun 04, 2007 at 01:15 UTC | |
by mrpeabody (Friar) on Jun 04, 2007 at 10:41 UTC | |
by ikegami (Patriarch) on Jun 04, 2007 at 13:38 UTC | |
by shmem (Chancellor) on Jun 05, 2007 at 09:49 UTC |