Changeset 5335
- Timestamp:
- 07/09/05 12:10:01 (4 years ago)
- svk:copy_cache_prev:
- 7349
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r5027 r5335 82 82 op2Match x y' 83 83 84 op2Match x@(VObject MkObject{ objType = MkType "Class" } ) y = do 85 fetch <- doHash x hash_fetchVal 86 name <- fromVal =<< fetch "name" 87 op2Match (VType (MkType name)) y 88 84 89 op2Match x y@(VObject MkObject{ objType = MkType "Class" } ) = do 85 90 fetch <- doHash y hash_fetchVal … … 157 162 op2Match x y@(VType _) = do 158 163 typ <- fromVal x 159 op2Match (VType typ) y 164 case x of 165 VRef x | typ == MkType "Class" -> do 166 x' <- readRef x 167 op2Match x' y 168 _ -> op2Match (VType typ) y 160 169 161 170 op2Match (VRef x) y = do
