Show
Ignore:
Timestamp:
10/09/06 17:27:07 (2 years ago)
Author:
audreyt
Message:

* Pugs.Prim.List: "join(1, [2, 3])" shouldn't flatten into "join(1, 2, 3)".

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/List.hs

    r14113 r14140  
    342342-- op2Join (VList [x@(VRef _)]) y = op2Join x y 
    343343op2Join x y = do 
    344     (strVal, listVal) <- ifValTypeIsa x "Scalar" 
    345         (return (x, y)) 
     344    (strVal, valList) <- ifValTypeIsa x "Scalar" 
     345        (return (x, (VRef (arrayRef (listVal y))))) 
    346346        (return (y, x)) 
    347347    str     <- fromVal strVal 
    348     ref     <- fromVal listVal 
     348    ref     <- fromVal valList 
    349349    list    <- readRef ref 
    350350    strList <- fromVals list