Changeset 14156 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
10/09/06 19:40:00 (2 years ago)
Author:
audreyt
Message:

* Move possiblyFixOperatorName from consumption site (lookupPad)

into production site (_Var and explicit &::()) on the assumption
that the former happens far more often than the former.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r14152 r14156  
    613613            Var name -> return name 
    614614            Syn [sigil,':',':','(',')'] [vexp] 
    615                 | Val (VStr name) <- unwrap vexp -> return $ cast (sigil:name) 
     615                | Val (VStr name) <- unwrap vexp -> return $ possiblyFixOperatorName (cast (sigil:name)) 
    616616            _        -> retError "Cannot bind this as lhs" var 
    617617        bindings <- forM (names `zip` vexps) $ \(var, vexp) -> enterLValue $ do