Changeset 15373 for src/Pugs/Val

Show
Ignore:
Timestamp:
02/27/07 18:56:54 (21 months ago)
Author:
audreyt
Message:

* First step in MO bridge:

vv('12345').reverse # '54321' (newVal)
vv('12345').reverse.reverse # '12345' (newVal)

It's the only method defined (and works) at the moment.
More tomorrow.

Files:
1 modified

Legend:

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

    r15297 r15373  
    131131    asNum = cast . parseInt -- XXX - wrong 
    132132    asInt = cast . parseInt 
    133     fromObj (MkInvocant x _) = undefined 
     133    fromObj (MkInvocant x _) = fromTypeable x 
    134134    classOf _ = mkBoxClass "Str" 
    135135        [ "reverse"    ... (MkStr . Char8.reverse . unStr)