Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created January 23, 2018 09:20
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/beeafcd0f831e3e4d234382a894fc400 to your computer and use it in GitHub Desktop.
Save zoffixznet/beeafcd0f831e3e4d234382a894fc400 to your computer and use it in GitHub Desktop.
use nqp;
my $z = 42;
my $bxx := -> $v {
$_ := $v;
.say;
say $z;
};
{
my $z = 100;
my $b2 := nqp::p6capturelex($bxx.clone);
$b2(4);
}
$bxx(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment