Changeset 15243 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
02/10/07 05:05:29 (22 months ago)
Author:
audreyt
Message:

* tene++ reported that:

warn if 1|2|3;

errorneously warned thrice because it was rewritten as:

if 1|2|3 -> $_ { warn }

instead of the clearly saner:

if 1|2|3 { warn }

This commit fixes it by defaulting syntactic prim/bare blocks
to take () instead of ($_=$+_).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r14716 r15243  
    15411541            { subEnv        = Just env 
    15421542            , subType       = SubPrim   -- This is a pseudoblock with no scope 
    1543             , subParams     = [defaultScalarParam] 
     1543            , subParams     = [] 
    15441544            , subBody       = x 
    15451545            }