Changeset 16371 for src/Pugs/Eval.hs
- Timestamp:
- 05/17/07 23:35:10 (18 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Eval.hs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Eval.hs
r16370 r16371 1064 1064 } 1065 1065 local callerEnv $ do 1066 val <- applysub Nothing args1066 val <- doApply ApplyDisplaced sub Nothing args 1067 1067 retShift =<< evalVal val 1068 1068 retEmpty … … 1128 1128 1129 1129 applyCapture :: VCode -> ValCapt -> Eval Val 1130 applyCapture sub capt = applysub inv (fromP argsPos ++ argsNam)1130 applyCapture sub capt = doApply ApplyDisplaced sub inv (fromP argsPos ++ argsNam) 1131 1131 where 1132 1132 argsPos = mapP (Val . castV) (f_positionals feed) … … 1332 1332 applyChainSub sub args = tryAnyComprehension [] args 1333 1333 where 1334 vanillaApply = applysub' Nothing args1334 vanillaApply = doApply ApplyDisplaced sub' Nothing args 1335 1335 tryAnyComprehension _ [] = vanillaApply 1336 1336 tryAnyComprehension pre (pivot:post) … … 1345 1345 fmap VList . (`filterM` items) $ \item -> do 1346 1346 vbool <- enterRValue . enterContext (cxtItem "Bool") $ do 1347 applysub' Nothing (reverse pre ++ (Val item:post))1347 doApply ApplyDisplaced sub' Nothing (reverse pre ++ (Val item:post)) 1348 1348 fromVal vbool 1349 1349 | otherwise = do
