Anonymous user
Call an object method: Difference between revisions
m
→{{header|Perl 6}}
Line 962:
@a-good-mix>>.&free-floating-method; # and let Perl 6 pick the right candidate for us
C.some-method(); # actually we don't really need an instance of C. We can call class
Note that, unlike in Perl 5, class names are type objects, not strings. (Type objects are typed variants of the undefined value in Perl 6.)
|