Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Forked from mwienand/Foo.pm6
Last active October 5, 2018 23:11
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 AlexDaniel/2c73c7d509e22d822161bb05337c7aa6 to your computer and use it in GitHub Desktop.
Save AlexDaniel/2c73c7d509e22d822161bb05337c7aa6 to your computer and use it in GitHub Desktop.
re-export p6
use FooBar;
module Foo {
sub foo is export { "foo" ~ bar() }
}
sub EXPORT {
FooBar::EXPORT::DEFAULT::
}
unit module FooBar;
sub bar is export { "bar" }
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