Skip to content

Commit

Permalink
Add a str candidate for IO::Handle.print
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Aug 27, 2015
1 parent fb323f4 commit c563ecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/IO/Handle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ my class IO::Handle does IO {


proto method print(|) { * }
multi method print(IO::Handle:D: str:D \x) {
nqp::printfh($!PIO,x);
Bool::True
}
multi method print(IO::Handle:D: Str:D \x) {
nqp::printfh($!PIO, nqp::unbox_s(x));
Bool::True
Expand Down

0 comments on commit c563ecd

Please sign in to comment.