Skip to content

Commit

Permalink
Move a paragraph about named parameters in multi sub documentation.
Browse files Browse the repository at this point in the history
See issue #2026
  • Loading branch information
fluca1978 committed May 18, 2018
1 parent da173e5 commit a0e58c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/Language/functions.pod6
Expand Up @@ -287,6 +287,10 @@ happy-birthday age => 40, name => 'Luca'; # OUTPUT: «Happy Birthday Luca, you
=end code
Named parameters participate in the dispatch even if they are not provided in
the call. Therefore a multi candidate with named parameters will be given
precedence.
For more information about type constraints see the documentation
for the L<Signature|/type/Signature#Type_Constraints> class.
Expand All @@ -299,9 +303,6 @@ for the L<Signature|/type/Signature#Type_Constraints> class.
say as-json( [ True, 10.3, False, 24 ] ); # OUTPUT: «[true, 10.3, false, 24]␤»
Named parameters participate in the dispatch even if they are not provided in
the call. Therefore a multi candidate with named parameters will be given
precedence.
C<multi> without any specific routine type always defaults to a C<sub>, but you
can use it on methods as well. The candidates are all the multi methods of the
Expand Down

0 comments on commit a0e58c1

Please sign in to comment.