Created
February 1, 2019 18:00
-
-
Save melezhik/186eb92bd2872039f36e9223723e8545 to your computer and use it in GitHub Desktop.
Reexport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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