Skip to content

Instantly share code, notes, and snippets.

@niner
Created September 13, 2014 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/82d8ec90363f6dc2b7f3 to your computer and use it in GitHub Desktop.
Save niner/82d8ec90363f6dc2b7f3 to your computer and use it in GitHub Desktop.
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