Changeset 2655

Show
Ignore:
Timestamp:
05/03/05 20:09:07 (4 years ago)
Author:
jhorwitz
svk:copy_cache_prev:
4152
Message:

remove module support until we can emit code outside of the main sub

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile/Parrot.hs

    r2652 r2655  
    177177            , label last 
    178178            ] 
    179     compile (Syn "module" [Val (VStr ns)]) = do 
    180         return $ text ".namespace ['_Pugs::" <> text ns <> text "']" 
     179    -- XXX broken! this needs to emit IMC *outside* of the main sub 
     180    -- compile (Syn "module" [Val (VStr ns)]) = do 
     181    --    return $ text ".namespace ['_Pugs::" <> text ns <> text "']" 
    181182    compile (App "&return" [] [val]) = do 
    182183        (valC, p) <- compileArg val