Skip to content

Commit

Permalink
this makes &?ROUTINE available in regex foo { ... }.
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Mar 12, 2013
1 parent 8104125 commit 73ca26a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -2681,6 +2681,9 @@ class Perl6::Actions is HLL::Actions does STDActions {
# Install in needed scopes.
install_method($/, $name, $scope, $code, $outer) if $name ne '';

# Install &?ROUTINE.
$*W.install_lexical_symbol($block, '&?ROUTINE', $code);

# Return a reference to the code object
reference_to_code_object($code, $past);
}
Expand Down

0 comments on commit 73ca26a

Please sign in to comment.