Created
April 3, 2023 02:49
-
-
Save lucs/259e6aad61651abcb192ae95625c044d 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
class Foo { | |
method foo { "FOO " } | |
method bar { $.foo } | |
method jub { self.foo } | |
} | |
my $f = Foo.new; | |
say $f.foo, $f.bar, $f.jub; # «FOO FOO FOO » | |
class Niy { | |
method niy { "NIY " } | |
method bar { $.niy; } | |
method jub { self.niy; } | |
} | |
say Niy.niy, Niy.bar, Niy.jub; # «NIY NIY NIY » |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment