Skip Menu |
Report information
Id: 116893
Status: open
Priority: 0/
Queue: perl6

Owner: FROGGS.de <email [at] froggs.de>
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] An alternation of literal strings doesn't backtrack properly in Rakudo
Date: Thu, 21 Feb 2013 17:57:03 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 498b
<TimToady> nr: say "abcde" ~~ / | @(<a b bc cde>)+»/ <p6eval> niecza v24-23-g0520c7c: OUTPUT«「abcde」␤␤» <p6eval> ..rakudo 9c59a1: OUTPUT«「cde」␤␤» <TimToady> wow <masak> what's that » doing there? <masak> word boundary, right? <TimToady> nod <TimToady> forcing backtracking <TimToady> which n does but r doesn't for the literals <masak> so... Niecza is right on the first one? <TimToady> yes, because nothing committed to the current LTM inside the @ * masak submits rakudobug
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 733b
On Thu Feb 21 08:57:24 2013, masak wrote: Show quoted text
> <TimToady> nr: say "abcde" ~~ / | @(<a b bc cde>)+»/ > <p6eval> niecza v24-23-g0520c7c: OUTPUT«「abcde」␤␤» > <p6eval> ..rakudo 9c59a1: OUTPUT«「cde」␤␤» > <TimToady> wow > <masak> what's that » doing there? > <masak> word boundary, right? > <TimToady> nod > <TimToady> forcing backtracking > <TimToady> which n does but r doesn't for the literals > <masak> so... Niecza is right on the first one? > <TimToady> yes, because nothing committed to the current LTM inside the @ > * masak submits rakudobug
2016, behavior unchanged: 10:11 < [Coke]> m: say "abcde" ~~ / | @(<a b bc cde>)+»/ 10:11 <+camelia> rakudo-moar 1e5df4: OUTPUT«「cde」␤» -- Will "Coke" Coleda


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org