Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lookup %*ENV for %ENV
  • Loading branch information
FROGGS committed Apr 11, 2013
1 parent c3d49d8 commit cfff2db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Perl6/P5Grammar.pm
Expand Up @@ -350,7 +350,9 @@ role STD5 {
$BLOCK[0].push(QAST::Op.new(
:op('bind'),
$lex,
$*W.symbol_lookup([$name], $/, :package_only(1), :lvalue(1))));
$name eq '%ENV' ?? QAST::Op.new( :op('call'), :name('&DYNAMIC'), $*W.add_string_constant('%*ENV'))
!! $*W.symbol_lookup([$name], $/, :package_only(1), :lvalue(1))
));
}
}
else {
Expand Down

0 comments on commit cfff2db

Please sign in to comment.