Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compile-time references to OUTER etc
  • Loading branch information
sorear committed Oct 26, 2011
1 parent 05b5bb6 commit 878afab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/niecza
Expand Up @@ -98,11 +98,11 @@ method is_name($longname, $curlex = $*CURLEX) {
$pkg = $*unit.abs_pkg(shift @parts);
goto "packagey";
}
when 'MY' { $sub = $curlex<!sub>; goto "lexy"; }
when 'OUTER' { $sub = $curlex<!sub>.?outer; goto "lexy"; }
when 'UNIT' { $sub = $curlex<!sub>.?to_unit; goto "lexy"; }
when 'CORE' { $sub = $curlex<!sub>.?true_setting; goto "lexy"; }
when 'SETTING' { $sub = $curlex<!sub>.?to_unit.?outer; goto "lexy"; }
when 'MY' { $sub = $curlex<!sub>; goto "lexy"; }
when 'OUTER' { $sub = $curlex<!sub>.outer; goto "lexy"; }
when 'UNIT' { $sub = $curlex<!sub>.to_unit; goto "lexy"; }
when 'CORE' { $sub = $curlex<!sub>.true_setting; goto "lexy"; }
when 'SETTING' { $sub = $curlex<!sub>.to_unit.outer; goto "lexy"; }

when 'COMPILING' | 'DYNAMIC' | 'CALLER' | 'CLR' { return True }

Expand All @@ -128,9 +128,9 @@ lexy:
return False unless $sub;
return True unless @parts;
given @parts[0] {
when 'OUTER' { $sub = $sub.?outer; goto "lexy"; }
when 'UNIT' { $sub = $sub.?to_unit; goto "lexy"; }
when 'SETTING' { $sub = $sub.?to_unit.?outer; goto "lexy"; }
when 'OUTER' { $sub = $sub.outer; goto "lexy"; }
when 'UNIT' { $sub = $sub.to_unit; goto "lexy"; }
when 'SETTING' { $sub = $sub.to_unit.outer; goto "lexy"; }
when 'CALLER' { return True; }
}

Expand Down

0 comments on commit 878afab

Please sign in to comment.