in reply to Re^4: Why doesn't SUPER cause dead loop here?
in thread Why doesn't SUPER cause dead loop here?
Did you read what you linked to?
And despite this, you understand the left hand side has to be evaluated before the right
Quite the opposite, I understand the this isn't true at all. Perl is free to place the contents of @_ on the stack before evaluating the shift(@_).
There's nothing in the linked post to support your statement. It states what Perl *does*, not what Perl *must do*. In fact, it contradicts your statement because it specifically points out that other behaviours are possible.
and in perltoot since about perl-5.004, 14 years ago
uh, nowhere in perltoot or in the other document you linked is @_ both used and modified in the same statement, much less the more specific shift->foo(@_).
In case there's any confusion, shift->foo() and $class->foo(@_) are perfectly safe, it's shift->foo(@_) that's not.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Why doesn't SUPER cause dead loop here?
by Anonymous Monk on Sep 02, 2011 at 09:07 UTC | |
by ikegami (Patriarch) on Sep 02, 2011 at 09:37 UTC |