Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Put the 'run in lexical scope of the setting' hack that was in the ol…
…d BEGIN implementation into add_phaser, so now say and stuff works in all phasers.
  • Loading branch information
jnthn committed Jul 15, 2010
1 parent 8ce9aff commit d51e99a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -588,7 +588,9 @@ method blorst($/) {
}

sub add_phaser($/, $bank) {
my $block := $<blorst>.ast;
my $block := PAST::Block.new(
PAST::Op.new( :pasttype('call'), :name('!YOU_ARE_HERE'), $<blorst>.ast )
);
my $subid := $block.subid();

# We always emit code to add the phaser.
Expand Down

0 comments on commit d51e99a

Please sign in to comment.