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
:i modifier precedence on alternations #2031
Comments
From oha@oha.iti expected that both the following should fails: say 'X' if 'bar' ~~ /:i FOO || BAR/; # only FOO modified by :i and i expected the following to match, but isn't: say 'Z' if 'Ab' eq 'Ab' ~~ / A :i B || C / |
From @cokeOn Sat Aug 07 02:43:43 2010, oha.it wrote:
Some more recent output: 19:06 <@Coke> nom: say 'X' if 'bar' ~~ /:i FOO || BAR/; -- |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzHi, On Sat Aug 07 02:43:43 2010, oha.it wrote:
I regret to inform you that your expectations aren't backed by S05; it indicates that :i is lexically scoped, and that subrules and [] and () introduce lexical scopes; I see no indication that || introduces lexical scopes.
Assuming the eq is a mistake, this has now been fixed (by NQP commit b924e932). (It was an over-eager optimization that concatenated consecutive literals, and didn't check whether :i changed for them) Cheers, |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77064 (status was 'resolved')
Searchable as RT77064$
The text was updated successfully, but these errors were encountered: