Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dispatcher fix (also can avoid creating an iterator).
  • Loading branch information
jnthn committed Aug 30, 2012
1 parent b4a2b7a commit f92c7fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Perl6/Metamodel/Dispatchers.pm
Expand Up @@ -31,8 +31,11 @@ class Perl6::Metamodel::BaseDispatcher {
@pos[$i] := $capture[$i];
$i := $i + 1;
}
for pir::getattribute__PPs($capture, 'named') {
%named{$_} := $capture{$_};
my @nameds := pir::getattribute__PPs($capture, 'named');
unless nqp::isnull(@nameds) {
for @nameds {
%named{$_} := $capture{$_};
}
}

# Call.
Expand Down

0 comments on commit f92c7fb

Please sign in to comment.