Hi Tobias,
$foo:bar and Foo:bar are variable/package names with an colonpair appended. The entire thing is then called a longname, at least internally.

Test:ver(v1) makes it clearer what it does. You $abc:def example boils down to $abd:def(True) btw.
Thanks for your answer. I now found something in the synopsis s99 which shows me the usage of it. Now I also understand that it is about multi methods and stuff. Excerpt shown below

longname

Because Perl 6 has the capability of "multiple dispatch" <http://design.perl6.org/S99.html#multiple_dispatch>, several methods or subroutines may have the same name but different parameters (different in number or in type). Perl decides which routine to call by looking at the *longname* which consists of the name of the routine and the type signature of its invocant arguments. See also "shortname" <http://design.perl6.org/S99.html#shortname>, "multi-method" <http://design.perl6.org/S99.html#multi-method>, and "multi-sub" <http://design.perl6.org/S99.html#multi-sub>.


Reply via email to