Advertisement
Guest User

Untitled

a guest
Apr 21st, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. role Foo {
  2. has $!x is rw;
  3. has $!y is rw;
  4. }
  5.  
  6. role Bar does Foo {
  7. method stuff() {
  8. say $!x;
  9. }
  10. }
  11.  
  12. class E {
  13. }
  14.  
  15. my E $e = E.new;
  16. $e does Bar;
  17. $e.stuff;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement