New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s/// substitutions allow the null pattern in Rakudo (but not in STD) #2326
Comments
From @masak<masak> rakudo: $_ = 'foo'; s:g/ /a/; say 'alive' |
From anteusz@freemail.huHi, Here is the patch.. Jaffa4 |
From @moritzAnd as an actual patch: --- a/src/Perl6/Grammar.pm But I fear this is the wrong approach. Instead of doing a separate null But I'll leave the final say to pmichaud or jnthn. Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudOn Mon, Feb 07, 2011 at 11:36:22AM +0100, Moritz Lenz wrote:
I completely agree; the check for null regex needs to be done in the / abc | | def / Patch rejected; thanks for submitting! Pm |
The RT System itself - Status changed from 'new' to 'open' |
From anteusz@freemail.hu2011.02.07. 11:36 keltezéssel, Moritz Lenz via RT írta:
Note , this approach has been used already in the same grammar.pm. If Jaffa4 |
From @cokeOn Wed Jan 12 09:29:31 2011, masak wrote:
This now dies correctly: 19:46 < [Coke]> m: $_ = 'foo'; s:g/ /a/; say 'alive' Closable with tests. |
From @moritzOn Tue Feb 25 16:46:33 2014, coke wrote:
We have tests now: commit fb9afbd6a49546a69b002816da99e0d0b5a0afc8 Test for RT #82142 Inline Patchdiff --git a/S32-exceptions/misc.t b/S32-exceptions/misc.t
index 1dd6284..52938e6 100644
--- a/S32-exceptions/misc.t
+++ b/S32-exceptions/misc.t
@@ -142,6 +142,8 @@ throws_like q[/ a & /], X::Syntax::Regex::NullRegex;
# RT 67554
throws_like q{/ [] /}, X::Syntax::Regex::NullRegex;
throws_like q{/ | /}, X::Syntax::Regex::NullRegex;
+# RT #82142
+throws_like q{s//b/}, X::Syntax::Regex::NullRegex;
throws_like 'sub f($a?, $b) { }', X::Parameter::WrongOrder, |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#82142 (status was 'resolved')
Searchable as RT82142$
The text was updated successfully, but these errors were encountered: