Changeset 4140

Show
Ignore:
Timestamp:
05/30/05 04:44:55 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5706
Message:

* err, juxtaposed commit log. _this_ change was the .keys/.values

fix -- last change was temporarily disabling infix:<-> in Set.pm
during the investigation, and fixing the overloading from method
into multi subs.

Location:
src/Pugs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim.hs

    r4138 r4140  
    524524-- [,] is a noop -- It simply returns the input list 
    525525op1 "prefix:[,]" = return 
    526 op1 "assoc" = op1Assoc 
     526op1 "Code::assoc" = op1Assoc 
    527527op1 other   = \_ -> fail ("Unimplemented unaryOp: " ++ other) 
    528528 
     
    14991499\\n   Bool      pre     bool::false safe   ()\ 
    15001500\\n   List      spre    prefix:[,]  safe   (List)\ 
    1501 \\n   Str       pre     assoc      safe   (Code:)\ 
     1501\\n   Str       pre     Code::assoc safe   (Code:)\ 
    15021502\\n" 
  • src/Pugs/Prim/Keyed.hs

    r4102 r4140  
    1616 
    1717pairsFromVal :: Val -> Eval [Val] 
     18pairsFromVal VUndef = return [] 
    1819pairsFromVal (PerlSV sv) = do 
    1920    keys    <- hash_fetchKeys sv 
     
    2728 
    2829keysFromVal :: Val -> Eval Val 
     30keysFromVal VUndef = return $ VList [] 
    2931keysFromVal (PerlSV sv) = do 
    3032    keys    <- hash_fetchKeys sv 
     
    3739 
    3840valuesFromVal :: Val -> Eval Val 
     41valuesFromVal VUndef = return $ VList [] 
    3942valuesFromVal (VJunc j) = return . VList . Set.elems $ juncSet j 
    4043valuesFromVal v@(VList _) = return v