Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make &eval a multi
that way it is easier for fglock++ to experiment with p5 eval
  • Loading branch information
moritz committed May 26, 2012
1 parent 4904b02 commit e756635
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/control.pm
Expand Up @@ -141,7 +141,8 @@ multi sub warn(*@msg) is hidden_from_backtrace {
0;
}

sub eval(Str $code, :$lang = 'perl6') {
proto sub eval(|$) {*}
multi sub eval(Str $code, :$lang = 'perl6') {
my $caller_ctx := Q:PIR {
$P0 = getinterp
%r = $P0['context';1]
Expand Down

0 comments on commit e756635

Please sign in to comment.