Skip to content

Commit

Permalink
Block out .READ/.WRITE/.EOF in IO::CatHandle
Browse files Browse the repository at this point in the history
Just making them all throw X::NYI ATM and sticking that into
SAP (Spec APpendices) until someone comes up with something
good for these to do.
  • Loading branch information
zoffixznet committed Jul 16, 2018
1 parent ae9a362 commit 9246b03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/IO/CatHandle.pm6
Expand Up @@ -422,6 +422,12 @@ my class IO::CatHandle is IO::Handle {
multi method say (|) { die X::NYI.new: :feature<say> }
proto method write (|) {*}
multi method write (|) { die X::NYI.new: :feature<write> }
proto method WRITE (|) {*}
multi method WRITE (|) { die X::NYI.new: :feature<WRITE> }
proto method READ (|) {*}
multi method READ (|) { die X::NYI.new: :feature<READ> }
proto method EOF (|) {*}
multi method EOF (|) { die X::NYI.new: :feature<EOF> }
# /|\

# Don't die on this one, as doing so breaks .Capture
Expand Down

0 comments on commit 9246b03

Please sign in to comment.