Changeset 4270 for src/Pugs/Types
- Timestamp:
- 06/01/05 17:46:40 (4 years ago)
- svk:copy_cache_prev:
- 5861
- Location:
- src/Pugs/Types
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Types/Array.hs
r4229 r4270 247 247 array_fetchVal pv 1 = return . snd =<< readIVar pv 248 248 array_fetchVal _ _ = return undef 249 array_storeVal _ _ _ = retConstError undef250 array_storeElem _ _ _ = retConstError undef251 array_deleteElem _ _ = retConstError undef249 array_storeVal a _ _ = retConstError $ VStr $ show a 250 array_storeElem a _ _ = retConstError $ VStr $ show a 251 array_deleteElem a _ = retConstError $ VStr $ show a 252 252 253 253 evalPerl5Sub :: String -> [PerlSV] -> Eval Val -
src/Pugs/Types/Code.hs
r3506 r4270 1 1 2 2 class (Typeable a) => CodeClass a where 3 code_iType :: a -> Type3 code_iType :: a -> Type 4 4 code_iType = const $ mkType "Code" 5 5 code_fetch :: a -> Eval VCode … … 30 30 _ -> mkType "Sub" 31 31 code_fetch = return 32 code_store _ _= retConstError undef32 code_store c _= retConstError $ VStr $ show c 33 33 code_assuming c [] [] = return c 34 34 code_assuming _ _ _ = error "assuming"
