Skip to content

Commit

Permalink
Add some comments about eager candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 12, 2014
1 parent ce95079 commit 34cf7a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/IO/Handle.pm
Expand Up @@ -120,7 +120,7 @@ my class IO::Handle does IO::FileTestable {
}
}
}
multi method lines(IO::Handle:D: :$eager!) {
multi method lines(IO::Handle:D: :$eager!) { # can probably go after GLR
return self.lines if !$eager;

unless nqp::defined($!PIO) {
Expand Down Expand Up @@ -168,7 +168,7 @@ my class IO::Handle does IO::FileTestable {
}
}
}
multi method lines(IO::Handle:D: $limit, :$eager!) {
multi method lines(IO::Handle:D: $limit, :$eager!) { # can probably go after GLR
return self.lines if $limit == Inf;
return self.lines($limit) if !$eager;

Expand Down
4 changes: 2 additions & 2 deletions src/core/Str.pm
Expand Up @@ -727,7 +727,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
$pos = $pos + $moving;
}
}
multi method lines(Str:D: :$eager!) {
multi method lines(Str:D: :$eager!) { # can probably go after GLR
return self.lines if !$eager;

my str $ns = nqp::unbox_s(self);
Expand Down Expand Up @@ -774,7 +774,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
$pos = $pos + $moving;
}
}
multi method lines(Str:D: $limit, :$eager! ) {
multi method lines(Str:D: $limit, :$eager! ) { # can probably go after GLR
return self.lines if $limit == Inf;
return self.lines($limit) if !$eager;

Expand Down

0 comments on commit 34cf7a9

Please sign in to comment.