Skip to content

Instantly share code, notes, and snippets.

@lizmat
Last active December 17, 2015 05:19
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 lizmat/5557120 to your computer and use it in GitHub Desktop.
Save lizmat/5557120 to your computer and use it in GitHub Desktop.
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