Skip to content

Instantly share code, notes, and snippets.

@mlschroe
Created September 19, 2011 16:38
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 mlschroe/9be7df6c549eb2385b7e to your computer and use it in GitHub Desktop.
Save mlschroe/9be7df6c549eb2385b7e to your computer and use it in GitHub Desktop.
diff --git a/src/Perl6/Actions.pm b/src/Perl6/Actions.pm
index 646413a..f0815e7 100644
--- a/src/Perl6/Actions.pm
+++ b/src/Perl6/Actions.pm
@@ -3740,6 +3740,7 @@ class Perl6::Actions is HLL::Actions {
PAST::Var.new( :scope('lexical_6model'), :name('$!'), :isdecl(1) ),
PAST::Var.new( :scope('lexical_6model'), :name('$_') ),
),
+ PAST::Op.new( :inline(" .const 'Sub' %r =\"" ~ $handler<past_block>.subid() ~ "\"\n capture_lex %r")),
PAST::Op.new( :pasttype('call'),
$handler,
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment