Changeset 21995

Show
Ignore:
Timestamp:
08/21/08 19:50:46 (3 months ago)
Author:
ruoso
Message:

[smop] experimenting the alternative signature for postcircumfix:<( )>

Location:
v6/smop
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/src/smop_s1p_code.sm0p

    r21972 r21995  
    2424  SMOP__Object* mold; 
    2525  SMOP__Object* signature; 
    26   SMOP__Object* outer ; 
     26  SMOP__Object* outer; 
    2727} SMOP__S1P__Code_struct; 
    2828 
     
    128128    $void = $lexical_outer_container."STORE"($outer); 
    129129 
    130     $void = $signature."BIND"($capture,$lexical); 
     130    my $actualcapture = $capture."positional"(0); 
     131 
     132    $void = $signature."BIND"($actualcapture,$lexical); 
    131133    my $frame_proto = ¢SMOP__Mold__Frame; 
    132134    my $frame = $frame_proto."new"($mold); 
  • v6/smop/test/21_code.m0ld

    r21972 r21995  
    1717    my $lexical; 
    1818 
    19  
    2019    my $it_var_slot = $lexical."postcircumfix:{ }"("$_"); 
    2120    my $it_var = $it_var_slot."FETCH"(); 
     
    3130    $void = $interpreter."goto"($back); 
    3231})); 
    33 $void = $code1."postcircumfix:( )"("ok 1\n"); 
    34 $void = $code1."postcircumfix:( )"("ok 2\n"); 
    35 $void = $code1."postcircumfix:( )"(); 
     32 
     33my $capture = ¢SMOP__S1P__Capturize."capturize"("ok 1\n"); 
     34$void = $code1."postcircumfix:( )"($capture); 
     35$capture = ¢SMOP__S1P__Capturize."capturize"("ok 2\n"); 
     36$void = $code1."postcircumfix:( )"($capture); 
     37$capture = ¢SMOP__S1P__Capturize."capturize"(); 
     38$void = $code1."postcircumfix:( )"($capture);