Changeset 12200 for src/Pugs/Val

Show
Ignore:
Timestamp:
08/14/06 06:48:18 (2 years ago)
Author:
audreyt
Message:

* Oldland method calls with newVal as invocant is now hooked into a

newland call with new toys such Captures, Feeds, etc. Yay!


pugs> vv('moose').elk(1, 2, antler => 3);
CCall "elk" CaptMeth?

{ c_invocant = VPure (MkStr? "moose")
, c_feeds = [ MkFeed?

{ a_positional = [VPure (IFinite 1),VPure (IFinite 2)]
, a_named = fromList [("antler",[VPure (IFinite 3)])]
} ]

}

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Val/Code.hs

    r12198 r12200  
    126126    = CaptMeth 
    127127        { c_invocant :: a 
    128         , c_argstack :: [Arglist a] 
     128        , c_feeds    :: [Feed a] 
    129129        } 
    130130    | CaptSub 
    131         { c_argstack :: [Arglist a] 
     131        { c_feeds    :: [Feed a] 
    132132        } 
    133133    deriving (Show, Eq, Ord, Data, Typeable) {-!derive: YAML_Pos, Perl6Class, MooseClass!-} 
    134134 
    135135-- | non-invocant arguments. 
    136 data Arglist a = MkArglist 
     136data Feed a = MkFeed 
    137137    { a_positional :: [a] 
    138138    , a_named      :: Map ID [a]    -- ^ maps to [a] and not a since if the Sig stipulates