Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created February 11, 2012 11:35
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 jnthn/1798905 to your computer and use it in GitHub Desktop.
Save jnthn/1798905 to your computer and use it in GitHub Desktop.
use MONKEY_TYPING;
augment class Code {
method outer() {
pir::perl6_code_object_from_parrot_sub__PP($!do.get_outer())
}
}
sub bar() {
my $foo := {
my $x := 1; $x = 2;
}
say $foo.outer().name;
}
bar();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment