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
Doing two S/// with an andthen
between them messes up $_ in Rakudo
#5208
Comments
From @masak<TimToady> m: say (S/Once/Twice/ given "Once upon a time") (Expected value here: "Twice upon two time".) <TimToady> a rather peculiar bug (Expected value here: "Twice upon two time".) <masak> m: $_ = "Once upon a time"; say ($_ ~= ", kthx" andthen S/a/two/) (This one is fine.) <masak> ok, so both S/// are needed to trigger the bug |
From @zoffixznetStill present in rakudo 405519: <Zoffix> m: say (S/a/A/ andthen S/b/B/ given "ab") |
From @zoffixznet♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥ TODO-fudged tests added in Raku/roast@72789d07a9 🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁 -- |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetDigging into it, seems the cause is the `is raw` on the thunk in `andthen`, which is the `$/` of the previous S/// So the glitch is due to it overwriting the string while matching it? Or something along those lines? <Zoffix> m: $_ = "aaabbb"; dd -> <Zoffix> m: $_ = "aaabbb"; dd -> |
From @zoffixznetThank you for the report. This is now fixed. Fix: rakudo/rakudo@97359ae42e |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127822 (status was 'resolved')
Searchable as RT127822$
The text was updated successfully, but these errors were encountered: