Skip to content

Commit

Permalink
How to access overridden parent methods
Browse files Browse the repository at this point in the history
Maybe should not have this here because it's a little freaky.
  • Loading branch information
adaptiveoptics committed Nov 6, 2016
1 parent 5983d92 commit 9ccd0f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/Language/classtut.pod6
Expand Up @@ -535,6 +535,11 @@ attribute worked. Array assignment is coercive, so the assignment turns the
new value into an array. This mechanism is also used for initializing
attributes.
If you need to call the parent method that you've overridden, C<callsame>
will execute it and return back to your overridden method. If you need
more complex interaction with overridden methods you will need to utilize
the MRO.
=head2 Multiple inheritance
As mentioned before, a class can inherit from multiple classes. When a
Expand Down

0 comments on commit 9ccd0f2

Please sign in to comment.