Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing multi-dispatch cache invalidation.
  • Loading branch information
jnthn committed Jul 7, 2011
1 parent 9000c38 commit 2898945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Metamodel/BOOTSTRAP.pm
Expand Up @@ -305,6 +305,7 @@ Code.HOW.add_method(Code, 'add_dispatchee', sub ($self, $dispatchee) {
my $disp_list := pir::getattribute__PPPsP($self, Code, '$!dispatchees');
if pir::defined($disp_list) {
$disp_list.push($dispatchee);
pir::setattribute__0PPsP($self, Code, '$!dispatcher_cache', pir::null__P());
}
else {
pir::die("Cannot add a dispatchee to a non-dispatcher code object");
Expand Down

0 comments on commit 2898945

Please sign in to comment.