Changeset 12484 for src/Pugs/Val

Show
Ignore:
Timestamp:
08/19/06 22:43:33 (2 years ago)
Author:
luqui
Message:

* Added the beginnings of Code::signature (returning a VV Sig).
* Changed all references to Val from AST/Internals to qualified.

Files:
1 modified

Legend:

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

    r12476 r12484  
    105105    , p_unpacking   :: Maybe PureSig -- ^ E.g. BinTree $t (Left $l, Right $r) 
    106106    , p_default     :: ParamDefault  -- ^ E.g. $answer? = 42 
    107     , p_label       :: ID            -- ^ E.g. :mode 
     107    , p_label       :: ID            -- ^ The external name for the param ('m' above) 
    108108    , p_slots       :: Table         -- ^ Any additional attrib not 
    109109                                     --   explicitly mentioned below 
    110110    , p_hasAccess   :: ParamAccess   -- ^ is ro, is rw, is copy 
    111     , p_isRef       :: Bool 
     111    , p_isRef       :: Bool          -- ^ must be true if hasAccess = AccessRW 
    112112    , p_isLazy      :: Bool 
    113113    } 
     
    134134    | AccessCopy 
    135135    deriving (Show, Eq, Ord, Typeable) {-!derive: YAML_Pos, Perl6Class, MooseClass!-} 
     136 
     137instance ICoercible P Sig where 
     138        asStr _ = return (cast "<sig>")  -- XXX 
     139 
     140instance Pure Sig where {} 
     141         
    136142 
    137143--------------------------------------------------------------------------------------