Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some pir:: => nqp:: replacements.
  • Loading branch information
jnthn committed Feb 1, 2013
1 parent 5233c6d commit aaf85c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/NQPRoutine.pm
Expand Up @@ -5,7 +5,7 @@ my knowhow NQPRoutine {
has $!dispatch_cache;
method add_dispatchee($code) {
$!dispatch_cache := nqp::null();
$!dispatchees.push($code);
nqp::push($!dispatchees, $code);
}
method is_dispatcher() {
nqp::defined($!dispatchees)
Expand All @@ -18,7 +18,7 @@ my knowhow NQPRoutine {
my $der := pir::repr_clone__PP(self);
nqp::bindattr($der, NQPRoutine, '$!do', $do);
nqp::bindattr($der, NQPRoutine, '$!dispatchees', nqp::clone($!dispatchees));
pir::set_sub_code_object__vPP($do, $der);
nqp::setcodeobj($do, $der);

# If needed, arrange for a fixup of the cloned code-ref.
my $clone_callback := pir::getprop__PPs($!do, 'CLONE_CALLBACK');
Expand Down Expand Up @@ -46,7 +46,7 @@ my knowhow NQPRoutine {
$der
}
method !set_name($name) {
pir::assign__0Ps($!do, $name);
nqp::setcodename($!do, $name);
}
}
pir::stable_publish_vtable_handler_mapping__vPP(NQPRoutine,
Expand Down Expand Up @@ -133,7 +133,7 @@ my knowhow NQPRegex {
}
}
method !set_name($name) {
pir::assign__0Ps($!do, $name);
nqp::setcodename($!do, $name);
}
}
pir::stable_publish_vtable_handler_mapping__vPP(NQPRegex,
Expand Down

0 comments on commit aaf85c3

Please sign in to comment.