Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
get rid of two cases of pir::setattribute__0PPsP
  • Loading branch information
moritz committed May 10, 2013
1 parent d7f3d4e commit 39ea92e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/GatherIter.pm
Expand Up @@ -11,9 +11,10 @@ class GatherIter is Iterator {
$P1 = find_lex '$coro'
$P1($P0)
};
pir::setattribute__0PPsP(
pir::setattribute__0PPsP(nqp::create(self), GatherIter, '$!coro', $coro),
GatherIter, '$!infinite', $infinite);
my Mu $new := nqp::create(self);
nqp::bindattr($new, GatherIter, '$!coro', $coro);
nqp::bindattr($new, GatherIter, '$!infinite', $infinite);
$new;
}

multi method DUMP(GatherIter:D: :$indent-step = 4, :%ctx?) {
Expand Down

0 comments on commit 39ea92e

Please sign in to comment.