Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop REPL complaining about "useless use"
As discovered by Horst H. von Brand in #4057, was introduced with 7c0a81f501d8956c5 The solution is to wrap each command given in a ( ).sink, to stop the useless use warning.
- Loading branch information
eae309a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a few weird side-effects:
eae309a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, mulling that :-(
eae309a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to stop the warning from happening by checking for it in the CONTROL block. Turns out the CONTROL block in REPL.pm6 never gets called: warnings appear to be handled in NQP :-(