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
Array interpolation @foo
doesn't backtrack
#5239
Comments
From tomentiruran@gmail.comThe attached file displays the bug, and includes explanation and per6 -V output. Thanks, the language is fun, apart from the bugs! |
From @zoffixznetStill present in 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5 Seems a very specific combination that causes it to fail: zoffix@VirtualBox:~$ perl6 -e 'my @stem = <b bc>; "bc" ~~ / "a" || @stem >> / or say "Failed"' |
From @zoffixznetI was able to golf it a bit further (still present in Rakudo 58dc8c). Removing >> or changing first-match || to longest-match | no longer shows the bug: m: "bc" ~~ /||@(<b bc>) >>/ or say "Failed" |
The RT System itself - Status changed from 'new' to 'open' |
From @smlsOn Wed, 20 Jul 2016 08:32:12 -0700, cpan@zoffix.com wrote:
Still present in: This is Rakudo version 2017.09-227-g8ff76b596 And it's not specific to `>>`. Even simpler test-case: ➜ say "abc" ~~ /[ a || ab ] c/; # 「abc」 It looks like it simply refuses to backtrack into `||@`. |
From @smlsIt affects `|` array interpolation as well: ➜ say "ab" ~~ / < ab a > b /; # 「ab」 |
Migrated from rt.perl.org#127906 (status was 'open')
Searchable as RT127906$
The text was updated successfully, but these errors were encountered: