Skip to content

Commit

Permalink
Nil.sink doesn't need any parameters
Browse files Browse the repository at this point in the history
This allows Nil.sink to be JITted, whereas before it couldn't.
  • Loading branch information
lizmat committed Jun 28, 2017
1 parent ce20887 commit a95c70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Nil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ my class Nil is Cool { # declared in BOOTSTRAP
multi method gist(Nil:) { 'Nil' }
method Numeric() { warn "Use of {self.gist} in numeric context"; 0 }
method Str() { warn "Use of {self.gist} in string context"; '' }
method sink(| --> Nil) { } # required by RESTRICTED setting
method sink(--> Nil) { } # required by RESTRICTED setting

method AT-POS(| --> Nil) { }
method AT-KEY(| --> Nil) { }
Expand Down

0 comments on commit a95c70b

Please sign in to comment.