Changeset 10246 for src/Pugs/Eval

Show
Ignore:
Timestamp:
05/09/06 16:17:14 (3 years ago)
Author:
gaal
svk:copy_cache_prev:
13387
Message:

* Reduce metaoperator in list context gives a scan. Tests included.

TimToady?++. Chained ops scanning doesn't; consulting with p6-l.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval/Var.hs

    r10059 r10246  
    1313import Pugs.Embed.Perl5 
    1414import Pugs.Bind 
    15 import Pugs.Prim.List (op2Fold, op1HyperPrefix, op1HyperPostfix, op2Hyper) 
     15import Pugs.Prim.List (op2Reduce, op1HyperPrefix, op1HyperPostfix, op2Hyper) 
    1616import Pugs.Prim.Param (foldParam) 
    1717import Pugs.Pretty 
     
    217217            , subBody     = Prim $ \[vs] -> do 
    218218                list_of_args <- fromVal vs 
    219                 op2Fold list_of_args (VCode code) 
     219                op2Reduce list_of_args (VCode code) 
    220220            } 
    221221        -- Now we construct the sub. Is there a more simple way to do it?