Changeset 4072

Show
Ignore:
Timestamp:
05/28/05 21:15:28 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5515
Message:

* fix when .isa() infinite loop introduced yesterday,

as reported by eric256

Location:
src/Pugs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r4058 r4072  
    446446        vbreak <- fromVal break 
    447447        result <- reduce $ case unwrap match of 
    448             App _ (Just (Var "$_")) _ -> exp 
     448            App _ (Just (Var "$_")) _ -> match 
    449449            _ -> App (Var "&infix:~~") Nothing [(Var "$_"), match] 
    450450        rb     <- fromVal result 
  • src/Pugs/Prim/Match.hs

    r3714 r4072  
    149149 
    150150op2Match x y@(VType _) = do 
    151     typ <- evalValType x 
     151    typ <- fromVal x 
    152152    op2Match (VType typ) y 
    153153