Changeset 7189

Show
Ignore:
Timestamp:
09/28/05 22:04:01 (3 years ago)
Author:
fglock
Message:

* perl5/Code - added Junction support to multisubs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • perl5/Perl6-Value/lib/Perl6/Code.pm

    r7186 r7189  
    221221            'defined' => sub { Bit->new( '$.unboxed' => 1 ) }, 
    222222     
    223             do => sub { 
     223            'expand_junctions' => sub { 
    224224                my ($self, @arguments) = @_; 
    225225                #warn "DO @arguments\n"; 
     
    246246                    } 
    247247                } 
     248                return; 
     249            }, 
     250            do => sub { 
     251                my ($self, @arguments) = @_; 
     252 
     253                my $j = $self->expand_junctions( @arguments ); 
     254                return $j if $j; 
    248255 
    249256                $self->check_params(@arguments) 
     
    356363            do => sub { 
    357364                my ($self, @args) = @_; 
     365 
     366                my $j = $self->expand_junctions( @args ); 
     367                return $j if $j; 
     368 
    358369                # warn "testing multisub, ".( scalar @{ _('@.subs') } ); 
    359370                foreach my $_sub ( @{ _('@.subs') } ) {