Skip to content

Commit

Permalink
Streamline IO::Special a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Mar 22, 2022
1 parent 3187922 commit 3e217a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core.c/IO/Special.pm6
@@ -1,10 +1,10 @@
my class Instant { ... }

class IO::Special does IO {
has Str $.what;
has Str $.what is built(False);

method new(Str:D \what --> IO::Special:D) {
nqp::p6bindattrinvres(nqp::create(self),self,'$!what',what)
method new(str $what --> IO::Special:D) {
nqp::p6bindattrinvres(nqp::create(self),self,'$!what',$what)
}
multi method WHICH(IO::Special:D: --> ValueObjAt) {
nqp::box_s(
Expand Down

0 comments on commit 3e217a0

Please sign in to comment.