-
-
Save anonymous/e26c27566bccf21dfdb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ~/rakudo-star-2015.01/install/bin/perl6 -e ' | |
role LocalResource[$name] { | |
method bla { | |
$name.say; | |
} | |
} | |
my LocalResource["person"] $x; $x.bla; | |
my LocalResource["post"] $y; $y.bla; | |
' | |
person | |
post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment