Skip to content

Commit

Permalink
move is_dispatcher from Code to Routine
Browse files Browse the repository at this point in the history
it did not work in Code anyway, because it uses an attribute from Routine
  • Loading branch information
moritz committed Sep 22, 2012
1 parent b72c434 commit cfd5e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/BOOTSTRAP.pm
Expand Up @@ -572,7 +572,7 @@ BEGIN {
Routine.HOW.add_attribute(Routine, BOOTSTRAPATTR.new(:name<$!package>, :type(Mu), :package(Routine))); Routine.HOW.add_attribute(Routine, BOOTSTRAPATTR.new(:name<$!package>, :type(Mu), :package(Routine)));
Routine.HOW.add_attribute(Routine, BOOTSTRAPATTR.new(:name<$!onlystar>, :type(int), :package(Routine))); Routine.HOW.add_attribute(Routine, BOOTSTRAPATTR.new(:name<$!onlystar>, :type(int), :package(Routine)));


Code.HOW.add_method(Code, 'is_dispatcher', static(sub ($self) { Routine.HOW.add_method(Routine, 'is_dispatcher', static(sub ($self) {
my $dc_self := pir::perl6_decontainerize__PP($self); my $dc_self := pir::perl6_decontainerize__PP($self);
my $disp_list := nqp::getattr($dc_self, Routine, '$!dispatchees'); my $disp_list := nqp::getattr($dc_self, Routine, '$!dispatchees');
pir::perl6_booleanize__PI(nqp::defined($disp_list)); pir::perl6_booleanize__PI(nqp::defined($disp_list));
Expand Down

0 comments on commit cfd5e72

Please sign in to comment.