Changeset 10465

Show
Ignore:
Timestamp:
06/03/06 08:11:29 (3 years ago)
Author:
audreyt
Message:

* Pugs.Eval: remove the "not()" hack.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r10461 r10465  
    791791reduceApp (Var "&return") invs args = op1Return $ shiftT . const . evalExp $ 
    792792    Syn "," (maybeToList invs ++ args) 
    793  
    794 -- XXX absolutely evil bloody hack for "not" 
    795 reduceApp (Var "&not") Nothing [] = retEmpty 
    796  
    797 reduceApp (Var "&not") invs args = do 
    798     bool <- fromVal =<< evalExp (last $ maybeToList invs ++ args) 
    799     retVal $ VBool (not bool) 
    800793 
    801794-- XXX absolutely evil bloody hack for "goto"