Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created January 23, 2018 09:36
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 zoffixznet/97f3f29e0e341082805700af21a1f40f to your computer and use it in GitHub Desktop.
Save zoffixznet/97f3f29e0e341082805700af21a1f40f to your computer and use it in GitHub Desktop.
use nqp;
my $bxx := do {
my $z = 42;
-> { say $z }
}
sub foo {
my $z = 100;
my $c2 := nqp::p6capturelex($bxx.clone);
$bxx.outer.say;
$c2.outer.say;
$c2();
}();
$bxx();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment