Changeset 13823 for src/Pugs/Eval

Show
Ignore:
Timestamp:
10/03/06 15:21:04 (2 years ago)
Author:
audreyt
Message:

* oops, the slurpy-param count fix accidentally broke named args.

Files:
1 modified

Legend:

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

    r13817 r13823  
    666666    = Just sub 
    667667 
    668     | reqLen    <- length $ filter (\p -> not (isOptional p) || isSlurpy p && v_sigil (paramName p) == SScalar) prms 
     668    | reqLen    <- length $ filter (\p -> not (isOptional p || (isSlurpy p && v_sigil (paramName p) /= SScalar))) prms 
    669669    , optLen    <- length $ filter (\p -> isOptional p) prms 
    670670    , hasArray  <- isJust $ find (\p -> isSlurpy p && v_sigil (paramName p) == SArray) prms