Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@lizmat /gist:5557120
Last active Dec 17, 2015

Goal for supporting auth / version / name in module / class / grammar ?
# should produce JRANDOM\nELIZABETH\n as output
module Foo:auth<JRANDOM> {
sub foo is export { say "JRANDOM" };
}
module Foo:auth<ELIZABETH> {
sub foo is export { say "ELIZABETH" };
}
{
use Foo:auth<JRANDOM>;
say foo;
}
{
use Foo:auth<ELIZABETH>;
say foo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.