Show
Ignore:
Timestamp:
09/29/06 03:34:35 (2 years ago)
Author:
audreyt
Message:

* Prefix + now takes arbitrary-precision integers; it's simply:

sub (Int $x) { -$x - 1 }

Files:
1 modified

Legend:

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

    r13681 r13717  
    277277        _true   = return (VBool True) 
    278278        _list   = return (VList []) 
    279         _neg1   = return (VInt (toInteger (complement 0 :: Word))) 
     279        _neg1   = return (VInt $ -1) 
    280280        _junc   = \jtyp -> return . VJunc $ MkJunc jtyp Set.empty Set.empty 
    281281        _''     = return (VStr "")