Changeset 16371 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
05/17/07 23:35:10 (18 months ago)
Author:
audreyt
Message:

* Make nextwith/callwith work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r16370 r16371  
    10641064                   } 
    10651065        local callerEnv $ do 
    1066             val <- apply sub Nothing args 
     1066            val <- doApply ApplyDisplaced sub Nothing args 
    10671067            retShift =<< evalVal val 
    10681068            retEmpty 
     
    11281128 
    11291129applyCapture :: VCode -> ValCapt -> Eval Val 
    1130 applyCapture sub capt = apply sub inv (fromP argsPos ++ argsNam) 
     1130applyCapture sub capt = doApply ApplyDisplaced sub inv (fromP argsPos ++ argsNam) 
    11311131    where 
    11321132    argsPos = mapP (Val . castV) (f_positionals feed) 
     
    13321332    applyChainSub sub args = tryAnyComprehension [] args 
    13331333        where 
    1334         vanillaApply = apply sub' Nothing args 
     1334        vanillaApply = doApply ApplyDisplaced sub' Nothing args 
    13351335        tryAnyComprehension _ [] = vanillaApply 
    13361336        tryAnyComprehension pre (pivot:post) 
     
    13451345                fmap VList . (`filterM` items) $ \item -> do 
    13461346                    vbool <- enterRValue . enterContext (cxtItem "Bool") $ do 
    1347                         apply sub' Nothing (reverse pre ++ (Val item:post)) 
     1347                        doApply ApplyDisplaced sub' Nothing (reverse pre ++ (Val item:post)) 
    13481348                    fromVal vbool 
    13491349            | otherwise = do