Skip to content

Commit

Permalink
Make the @what slurpy a copy
Browse files Browse the repository at this point in the history
At some point recently the @what[*-1] became immutable so the
assignment in ```!process``` failed.

Fixes #2
  • Loading branch information
jonathanstowe committed Sep 28, 2016
1 parent 810752c commit 9727c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IO/MiddleMan.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ method normal (IO::Handle $handle is rw) {
$handle = self.bless: :$handle :mode<normal>;
}

method !process (OutputMethods $meth , *@what) returns Bool {
method !process (OutputMethods $meth , *@what is copy) returns Bool {
@what = @what».gist if $meth eq 'say';
@what[*-1] ~= $.nl-out if $meth eq any <put say>;
given $.mode {
Expand Down

0 comments on commit 9727c20

Please sign in to comment.