Skip to content

Instantly share code, notes, and snippets.

@niner

niner/A.pm6 Secret

Created September 12, 2017 08:31
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 niner/66a72dbe737dcff4ab862ca782ce706f to your computer and use it in GitHub Desktop.
Save niner/66a72dbe737dcff4ab862ca782ce706f to your computer and use it in GitHub Desktop.
module A {}
use nqp;
sub EXPORT {
if $*W {
my $block := { nqp::print(nqp::getlexdyn('$*W') ?? "world is still there!" !! "The world went away"); };
$*W.add_object($block);
my $op := $*W.add_phaser(Mu, 'CHECK', $block, class :: { method cuid { (^2**128).pick }});
}
Map.new
}
unit class B;
use A;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment