Changeset 15371 for src/Pugs/Prim.hs

Show
Ignore:
Timestamp:
02/27/07 17:01:04 (21 months ago)
Author:
audreyt
Message:

* cmp() (and by extension, sort()) should default on lexographic

sorting if either side is non-numeric.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim.hs

    r15328 r15371  
    15151515op2OrdNumStr x y 
    15161516    | isNumeric x && isNumeric y = op2Ord vCastRat x y 
    1517     | otherwise                  = op2OrdNumeric compare x y 
     1517    | otherwise                  = op2Ord vCastStr x y 
    15181518 
    15191519op3Caller :: Type -> Int -> Val -> Eval Val