Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small optimization in "samewith"
  • Loading branch information
lizmat committed Aug 7, 2013
1 parent 1d15f4d commit a3eecdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/control.pm
Expand Up @@ -119,10 +119,10 @@ my &lastcall := -> {
};

my &samewith := -> *@pos, *%named {
my $caller = callframe(1);
my $self = $caller.my<self>
my $my = callframe(1).my;
my $self = $my<self>
|| die "Could not find 'self'";
my $dispatcher = $caller.my<&?ROUTINE>.dispatcher
my $dispatcher = $my<&?ROUTINE>.dispatcher
|| die "Could not find dispatcher";
$dispatcher( $self, |@pos, |%named );
}
Expand Down

0 comments on commit a3eecdc

Please sign in to comment.