Skip to content

Instantly share code, notes, and snippets.

@melezhik
Created February 1, 2019 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melezhik/186eb92bd2872039f36e9223723e8545 to your computer and use it in GitHub Desktop.
Save melezhik/186eb92bd2872039f36e9223723e8545 to your computer and use it in GitHub Desktop.
Reexport
[user@ed72702784f7 Sparrow6]$ cat /tmp/Foo.pm6
unit module Foo; use Bar :ALL :EXPORT;
[user@ed72702784f7 Sparrow6]$ cat /tmp/Bar.pm6
unit module Bar; our sub bar () is export(:ALL) {};
[user@ed72702784f7 Sparrow6]$ perl6 -I /tmp/ -MFoo -e 'say bar()'
===SORRY!=== Error while compiling -e
Undeclared routine:
bar used at line 1. Did you mean 'VAR', 'bag'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment