Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduc // as a definedness prefix operator in 6.e
As suggested by Leon Timmermans in: https://twitter.com/leon_timmermans/status/1560416910101172225 This also disables the "null regex not allowed" error in 6.e, because otherwise the // prefix operator wouldn't get past parsing.
- Loading branch information
Showing
5 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
multi sub next(\x --> Nil) { THROW(nqp::const::CONTROL_NEXT, x) } | ||
multi sub last(\x --> Nil) { THROW(nqp::const::CONTROL_LAST, x) } | ||
|
||
proto sub prefix:<//>($) {*} | ||
multi sub prefix:<//>(\a) { a.defined } | ||
|
||
# vim: expandtab shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters