mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
a511067cd8
Data::Bind-based multi-sub dispatch
11 lines
296 B
Plaintext
11 lines
296 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.
|
|
|
|
WWW: http://search.cpan.org/dist/Sub-Multi/
|