Changeset 16448

Show
Ignore:
Timestamp:
05/19/07 00:33:28 (18 months ago)
Author:
audreyt
Message:

* Allow params to refer to themselves in their initializing

expressions, for example:

sub f ($x = sub { $x }) { ... }
my $x = sub { $x }

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Parser.hs

    r16438 r16448  
    519519 
    520520    -- XXX - RIGHT HERE, add this one to CompPad? 
     521    modify $ \state -> state 
     522        { s_knownVars = Map.insert (cast name) (fromJust . envCompPad $ s_env state) (s_knownVars state) } 
    521523 
    522524    rv <- case opt of