Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2015 14:20
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 anonymous/89624af3959c7fb86c62 to your computer and use it in GitHub Desktop.
Save anonymous/89624af3959c7fb86c62 to your computer and use it in GitHub Desktop.
class A {
has $.data;
submethod BUILD(*@args) {
#
}
method foo() {
say "foo";
}
}
class B {
has $.a handles <foo>;
submethod BUILD(*@args) {
$!a = A.new;
}
method bar() {
say "bar";
}
}
class C {
use B;
has $.b handles <bar foo>;
submethod BUILD(*@args) {
$!b = B.new;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment