
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 1.32 KB | hits: 8 | expires: Never
diff --git a/src/Perl6/Grammar.pm b/src/Perl6/Grammar.pm
index 4397f42..2eeff31 100644
--- a/src/Perl6/Grammar.pm
+++ b/src/Perl6/Grammar.pm
@@ -334,7 +334,6 @@ grammar Perl6::Grammar is HLL::Grammar {
:my $*UNIT;
:my $*UNIT_OUTER;
:my $*EXPORT;
- :my $*COMPILING := 1;
# A place for Pod
:my $*POD_BLOCKS := [];
diff --git a/src/Perl6/ModuleLoader.pm b/src/Perl6/ModuleLoader.pm
index 2eca2cf..efbf52d 100644
--- a/src/Perl6/ModuleLoader.pm
+++ b/src/Perl6/ModuleLoader.pm
@@ -49,7 +49,7 @@ class Perl6::ModuleLoader {
$module_ctx := %modules_loaded{$path};
}
else {
- my $*COMPILING := 0;
+ my %*COMPILING := {};
my $*CTXSAVE := self;
my $*MAIN_CTX;
my $preserve_global := pir::get_hll_global__Ps('GLOBAL');
diff --git a/src/core/traits.pm b/src/core/traits.pm
index a02b59d..bc041f0 100644
--- a/src/core/traits.pm
+++ b/src/core/traits.pm
@@ -37,7 +37,7 @@ multi trait_mod:<is>(Parameter:D $param, :$copy!) {
# TODO: Make this much less cheaty. That'll probably need the
# full-blown serialization, though.
multi trait_mod:<is>(Routine:D \$r, :$export!) {
- if $*COMPILING {
+ if %*COMPILING {
my @tags = 'ALL', 'DEFAULT';
for @tags -> $tag {
my $install_in;