Skip to content

Commit

Permalink
When we do a use, we need to make sure the recursive invocation of th…
Browse files Browse the repository at this point in the history
…e Perl 6 compiler gets a clean @?NS, otherwise thigns start getting nested in namespaces in the non-pre-compiled case.
  • Loading branch information
jnthn committed Mar 20, 2009
1 parent cba1557 commit 2352fd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/builtins/eval.pir
Expand Up @@ -119,8 +119,13 @@ itself can be found in src/builtins/control.pir.
goto done

eval_perl6:
.local pmc outer_ns_chain
outer_ns_chain = get_hll_global ['Perl6';'Grammar';'Actions'], '@?NS'
$P0 = new 'List'
set_hll_global ['Perl6';'Grammar';'Actions'], '@?NS', $P0
inc_hash[name] = realfilename
result = 'evalfile'(realfilename, 'lang'=>'Perl6')
set_hll_global ['Perl6';'Grammar';'Actions'], '@?NS', outer_ns_chain

done:
.return (result)
Expand Down

0 comments on commit 2352fd0

Please sign in to comment.