Changeset 10853 for src/Pugs/CodeGen

Show
Ignore:
Timestamp:
06/23/06 16:15:48 (2 years ago)
Author:
audreyt
Message:

* CodeGen?.PIR: DebolazX++ reported that our new OUTER:: resolution

doesn't play well with PIR codegen yet. before we figure out a
good outer_sub call in PIR, just pretend there's no shadowing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/PIR.hs

    r10850 r10853  
    179179        tell [StmtRaw (text "errorson .PARROT_ERRORS_GLOBALS_FLAG")] 
    180180        return pmc 
     181    -- XXX - hack to erase OUTER before we have proper pad uplevel support 
     182    trans (PVar name) 
     183        | Just (package, name') <- breakOnGlue "::" name 
     184        , Just (sig, "") <- breakOnGlue "OUTER" package 
     185        = trans $ PVar (sig ++ name') 
    181186    trans (PVar name) = do 
    182187        pmc     <- genScalar "lex"