Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pmichaud@kiwi:~/nom$ cat myj
- my class MyJunction is Mu {
- has $!type; # type of Junction
- method xyz() { $!type; }
- }
- my $any = MyJunction.new(:type('any'));
- say $any.xyz;
- pmichaud@kiwi:~/nom$ ./perl6 myj
- Mu()
Add Comment
Please, Sign In to add comment