Changeset 22585 for src/perl6

Show
Ignore:
Timestamp:
10/11/08 20:55:51 (6 weeks ago)
Author:
lwall
Message:

[STD] implement [...] and {...} subsigs, rafl++ and moritz++
[viv] warning suppression

Location:
src/perl6
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/STD.pm

    r22576 r22585  
    26722672    ] 
    26732673 
     2674    <.ws> 
     2675    $<subsig> = [ 
     2676    | '[' ~ ']' <signature> 
     2677    | <?before '{'> <!{ $+GOAL eq '{'}> 
     2678      '{' ~ '}' <signature> 
     2679    ]* 
     2680 
    26742681    <trait>* 
    26752682 
  • src/perl6/viv

    r22576 r22585  
    189189            my @zyg = $self->get_zygs; 
    190190            my $arity = $self->{ARITY} // ''; 
     191            my $sym = $self->{sym} // ''; 
    191192            if ($arity eq 'BINARY') { 
    192193                $text .= $zyg[0] . $zyg[2] . $zyg[1]; 
     
    200201                } 
    201202            } 
    202             elsif ($self->{sym} eq 'identifier') { 
     203            elsif ($sym eq 'identifier') { 
    203204                $text .= join('', reverse @zyg); 
    204205            }