Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor method creation a bit, making sure that
the Method objects end up with a PAST::Val reference to the underlying Parrot sub, so that the PAST::Block for the sub itself can be nested within the class/package/role main block. This resolves the problem with methods being unable to access lexical and package-scoped variables in class definitions.
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters