Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #180 from ungrim97/master
Make clear that is export should appear after function args list
  • Loading branch information
jonathanstowe committed Oct 30, 2015
2 parents 542b373 + 19b81e8 commit 459c66e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/Language/modules.pod
Expand Up @@ -83,6 +83,13 @@ them with the L<is export> trait.
class MyModule::MyClass {};
=end code
As with all traits, if applied to a routine, "is export" should appear after
any argument list.
=begin code
sub foo (Str $string) is export { ... }
=end code
You can pass named parameters to C<is export> to group symbols for exporting
then the importer can pick and choose. There are three predefined
tags: C<ALL>, C<DEFAULT> and C<MANDATORY>.
Expand Down

0 comments on commit 459c66e

Please sign in to comment.