Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #509 from molecules/patch-2
Added samewith
  • Loading branch information
jonathanstowe committed May 9, 2016
2 parents f33f8af + ee9f0b2 commit 7fb512c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/Language/control.pod
Expand Up @@ -774,6 +774,24 @@ conditional again.
=comment TODO
=head1 X<samewith|control flow>
The C<samewith> allows one to call a multisub of the same name as the current sub.
=begin code
multi indent-say ( 'test' )
{
samewith 'ABCD';
}
multi indent-say ( Str $string )
{
say "\t$string";
}
=end code
=end pod

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 7fb512c

Please sign in to comment.