Changeset 6286 for src/Pugs/Bind.hs

Show
Ignore:
Timestamp:
08/16/05 19:26:48 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
8581
Message:

* Single-argument calls with object as the argument should

dispatch to method:


close $fh # same as $fh.close

Reported by Yiyi Hu.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Bind.hs

    r5847 r6286  
    182182           -> MaybeError VCode -- ^ Returns either a new 'VCode' with all the 
    183183                               --     bindings in place, or an error message 
     184-- Special case: 'close $fh' should be bound as '$fh.close' 
     185bindParams sub Nothing [inv] 
     186    | (p:_) <- subParams sub, isInvocant p 
     187    = bindParams sub (Just inv) [] 
    184188bindParams sub invExp argsExp = do 
    185189    case bindSomeParams sub invExp argsExp of