blob: 47a7a5929ef9aa075a4c9335a7cdc9cbdc36ae7d (
plain) (
blame)
1
2
3
4
5
6
7
8
|
Perl6 allows multiple subs and methods with the same name, differing only in
their signature.
multi sub bar (Dog $foo) {?}
multi sub bar (Cat $foo) {?}
Dispatching will happen based on the runtime signature of the subroutine or
method call.
|