Files
2026-10-04 04:07:15 +00:00

9 lines
251 B
Plaintext

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.