Changeset 22052

Show
Ignore:
Timestamp:
08/28/08 09:45:51 (3 months ago)
Author:
pmurias
Message:

[smop]
for uses ->, not -->
fixed a bug in DESTROYALL in mold

Location:
v6/smop
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/src-s1p/P6Meta.pm

    r22036 r22052  
    1 class P6Meta meta ¢SMOP__S1P__PurePrototypeHow { 
     1class P6Meta meta SMOP__S1P__PurePrototypeHow { 
    22 
    33=begin 
     
    135135  method methods($how: $object --> List of Method) { 
    136136      my sub list_methods_recurse($obj) { 
    137           for ($obj.^!methods) --> $selfdef { 
     137          for ($obj.^!methods) -> $selfdef { 
    138138              take $selfdef; 
    139139          } 
    140           for ($obj.^!isa) --> $isa { 
     140          for ($obj.^!isa) -> $isa { 
    141141              list_methods_recurse($isa); 
    142142          } 
    143           for ($obj.^!role) --> $role { 
     143          for ($obj.^!role) -> $role { 
    144144              list_methods_recurse($role); 
    145145          } 
     
    148148      List of Method @methods = gather { 
    149149          list_methods_recurse($object); 
    150           for ($object.^!submethods) --> $submethod { 
     150          for ($object.^!submethods) -> $submethod { 
    151151             take $submethod; 
    152152          } 
     
    164164=end 
    165165 
    166   method attributes($how: $object, --> List of Attribute) { 
     166  method attributes($how: $object --> List of Attribute) { 
    167167      my sub list_attributes_recurse($obj) { 
    168           for ($obj.^!attributes) --> $attr { 
     168          for ($obj.^!attributes) -> $attr { 
    169169              take $attr; 
    170170          } 
    171           for ($obj.^!isa) --> $isa { 
     171          for ($obj.^!isa) -> $isa { 
    172172              list_attributes_recurse($isa); 
    173173          } 
    174           for ($obj.^!role) --> $role { 
     174          for ($obj.^!role) -> $role { 
    175175              list_attributes_recurse($role); 
    176176          } 
     
    194194  method isa($how: $object, $superclass --> bool) { 
    195195      return true if $object === $superclass; 
    196       for ($object.^!isa) --> $isa { 
     196      for ($object.^!isa) -> $isa { 
    197197          return true if $isa === $superclass; 
    198198          my $res = $isa.^isa($superclass); 
     
    212212  method does($how: $object, $superclass --> bool) { 
    213213      return true if $object === $superclass; 
    214       for ($object.^!does) --> $isa { 
     214      for ($object.^!does) -> $isa { 
    215215          return true if $isa === $superclass; 
    216216          my $res = $isa.^does($superclass); 
    217217          return true if $res; 
    218218      } 
    219       for ($object.^!does) --> $does { 
     219      for ($object.^!does) -> $does { 
    220220          return true if $does === $superclass; 
    221221          my $res = $does.^does($superclass); 
  • v6/smop/src/smop_mold.c

    r22033 r22052  
    292292    } 
    293293  } else if (SMOP__ID__DESTROYALL == identifier) { 
    294     SMOP_RELEASE(interpreter,frame->mold); 
    295294    int i; 
    296295    for (i=0;i<mold->registers;i++) { 
     
    298297    } 
    299298    free(frame->registers); 
     299    SMOP_RELEASE(interpreter,frame->mold); 
    300300  } else { 
    301301    ___UNKNOWN_METHOD___;