Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Uncomment !reduce methods.
  • Loading branch information
jnthn committed Feb 27, 2013
1 parent b52d132 commit fb2d288
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nqp-src/QRegex.nqp
Expand Up @@ -664,15 +664,15 @@ role NQPCursorRole is export {
}

method !reduce(str $name) {
# my $actions := nqp::getlexdyn('$*ACTIONS');
# nqp::findmethod($actions, $name)($actions, self.MATCH)
# if !nqp::isnull($actions) && nqp::can($actions, $name);
my $actions := nqp::getlexdyn('$*ACTIONS');
nqp::findmethod($actions, $name)($actions, self.MATCH)
if !nqp::isnull($actions) && nqp::can($actions, $name);
}

method !reduce_with_match($name, $key, $match) {
# my $actions := nqp::getlexdyn('$*ACTIONS');
# nqp::findmethod($actions, $name)($actions, $match, $key)
# if !nqp::isnull($actions) && nqp::can($actions, $name);
my $actions := nqp::getlexdyn('$*ACTIONS');
nqp::findmethod($actions, $name)($actions, $match, $key)
if !nqp::isnull($actions) && nqp::can($actions, $name);
}

method !shared() { $!shared }
Expand Down

0 comments on commit fb2d288

Please sign in to comment.