Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix REPL variable updating bug.
  • Loading branch information
jnthn committed Jan 10, 2013
1 parent 5a9b349 commit d5c0011
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/HLL/Compiler.pm
Expand Up @@ -128,13 +128,16 @@ class HLL::Compiler {
};
if nqp::defined($*MAIN_CTX) {
my $cur_ctx := $*MAIN_CTX;
my %seen;
until nqp::isnull($cur_ctx) {
my $pad := nqp::ctxlexpad($cur_ctx);
unless nqp::isnull($pad) {
for $pad {
my str $key := ~$_;
%interactive_pad{$key} := nqp::atkey($pad, $key)
unless nqp::existskey(%interactive_pad, $key);
unless nqp::existskey(%seen, $key) {
%interactive_pad{$key} := nqp::atkey($pad, $key);
%seen{$key} := 1;
}
}
}
$cur_ctx := nqp::ctxouter($cur_ctx);
Expand Down

0 comments on commit d5c0011

Please sign in to comment.