Created
September 13, 2014 14:51
-
-
Save niner/82d8ec90363f6dc2b7f3 to your computer and use it in GitHub Desktop.
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
role Perl5Class[$package] { | |
has $.parent is rw; | |
Bar.^add_fallback(-> $, $ { True }, | |
method ($name) { | |
-> \self, |args { | |
$.parent.perl5.invoke($package, $.parent.ptr, $name, self, args.list); | |
} | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment