re-export p6
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
use FooBar; | |
module Foo { | |
sub foo is export { "foo" ~ bar() } | |
} | |
sub EXPORT { | |
FooBar::EXPORT::DEFAULT:: | |
} |
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
unit module FooBar; | |
sub bar is export { "bar" } |
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
use lib ‘sandbox/’; | |
use Foo; | |
say foo(); | |
say bar(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment