Show
Ignore:
Timestamp:
05/11/05 02:32:56 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4498
Message:

* $obj.clone() support.
* $obj ~~ Class support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Match.hs

    r2948 r2957  
    99import Pugs.AST 
    1010import Pugs.Types 
     11import Pugs.Context 
    1112import Pugs.Config 
    1213import qualified RRegex.PCRE as PCRE 
     
    6768    y' <- readRef y 
    6869    op2Match x y' 
     70 
     71op2Match x (VType t) = do 
     72    typ <- evalValType x 
     73    cls <- asks envClasses 
     74    return $ VBool (isaType cls (showType t) typ) 
    6975 
    7076op2Match x (VSubst (rx, subst)) | rxGlobal rx = do