Created
July 16, 2015 07:33
-
-
Save jaffa4/65d3e848cf08024957b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class a | |
{ | |
has $b; | |
method new() | |
{ | |
self.bless(b=>4); | |
} | |
method get() | |
{ | |
return $!b; | |
} | |
} | |
my $c = a.new(); | |
say $c.get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment