Changeset 3714 for src/Pugs/Prim/Match.hs
- Timestamp:
- 05/23/05 05:19:44 (4 years ago)
- svk:copy_cache_prev:
- 5201
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r3708 r3714 78 78 op2Match x y' 79 79 80 op2Match (VType typ) (VType t) = do81 cls <- asks envClasses82 return $ VBool (isaType cls (showType t) typ)83 84 op2Match x y@(VType _) = do85 typ <- evalValType x86 op2Match (VType typ) y87 88 80 op2Match x (VSubst (rx, subst)) | rxGlobal rx = do 89 81 str <- fromVal x … … 148 140 (return $ VMatch match) 149 141 142 op2Match (VRef x) y = do 143 x' <- readRef x 144 op2Match x' y 145 146 op2Match (VType typ) (VType t) = do 147 cls <- asks envClasses 148 return $ VBool (isaType cls (showType t) typ) 149 150 op2Match x y@(VType _) = do 151 typ <- evalValType x 152 op2Match (VType typ) y 153 150 154 op2Match x y = op2Cmp (fromVal :: Val -> Eval VStr) (==) x y 151 155
