Guest User

Untitled

a guest
Feb 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. pmichaud@kiwi:~/nom$ cat myj
  2. my class MyJunction is Mu {
  3. has $!type; # type of Junction
  4.  
  5. method xyz() { $!type; }
  6. }
  7.  
  8.  
  9. my $any = MyJunction.new(:type('any'));
  10. say $any.xyz;
  11.  
  12. pmichaud@kiwi:~/nom$ ./perl6 myj
  13. Mu()
Add Comment
Please, Sign In to add comment