in reply to Re^3: goto &method and skipping call frame
in thread goto &method and skipping call frame
And I now understand goto &$method_ref seems to follow the @ISA chain.
It doesn't, this was my brain fart. =)
It's the ->can() which already returned the correct code_ref after following the inheritance chain
And that's highlighting the difference to Class::Table, $func is a string not a ref.
Additionally goto &field is not a dynamic call, it will always call the same sub field in the same package.
Though ->field could be called as a method form other points, since it expects $self as first argument.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|