Changeset 3947 for src/Pugs/Types

Show
Ignore:
Timestamp:
05/27/05 03:41:51 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5515
Message:

* PerlSV now does Hash and Array

Location:
src/Pugs/Types
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Types/Array.hs

    r2627 r3947  
    251251    array_deleteElem _ _   = retConstError undef 
    252252 
     253instance ArrayClass PerlSV where 
     254    array_iType = const $ mkType "Array::Perl" 
     255    array_fetchVal _  _    = return undef 
     256    array_storeVal _ _ _   = retConstError undef 
     257    array_storeElem _ _ _  = retConstError undef 
     258    array_deleteElem _ _   = retConstError undef 
  • src/Pugs/Types/Hash.hs

    r3097 r3947  
    117117            svMap <- readTVar hv 
    118118            return $ Map.member idx svMap 
     119 
     120instance HashClass PerlSV where 
     121    hash_iType = const $ mkType "Hash::Perl" 
     122    hash_clear _ = retConstError undef 
     123    hash_store _ _ = retConstError undef 
     124    hash_storeVal _ _ _ = retConstError undef 
     125    hash_storeElem _ _ _ = retConstError undef 
     126    hash_deleteElem _ _ = retConstError undef