Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
class, method, multi keywords #16
Parse them into the existing structures.
perl6 creates a longname of the sig types and aliases them to the combined shortname, the proto (aka generic). Their multiple dispatch is the global shortest distance over all argument types, as in Damian's Class::MultiMethods http://cpansearch.perl.org/src/DCONWAY/Class-Multimethods-1.70/tutorial.html with an error if there are equally ranked candidates.
For the beginning with cperl only allow it within classes, and favor methods over subs:
fail at 'Invalid method call on class subroutine' and vice versa 'Invalid subroutine call on class method'.
See the branch
This was referenced
Dec 24, 2015
referenced this issue
Jun 21, 2017