|
Perl 6
SMOP Multi Sub Dispatch: Revision 1
Multi subs in Perl 6 support two very nasty features:
What do they mean? Lexical VariantsThat mean that you might have
my multi foo (Foo $a) {...};
for 1..4 {
my multi foo (Bar $a) {...};
# foo(Bar) is visible here
}
# but not here
|