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
Parrot doesn't distinguish hash access from array access #422
Comments
From @moritzFrom #perl6 today: 19:33 < moritz_> rakudo: my $x = [ 42 ]; say $x<0> I don't think that should be allowed. Cheers, -- |
From @particleOn Fri, Nov 21, 2008 at 10:43, via RT Moritz Lenz
the real test is: (8:52:47 PM) [particle]1: rakudo: my $x = [42]; say $x<0_but_true>; so, the index is coerced to an integer. is that really wrong? |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzjerry gay wrote:
IMHO yes, because Perl explicitly distinguishes between arrays and But that's just my two cents, CC'ing p6l for clarification. Moritz |
From @pmichaudOn Fri, Nov 21, 2008 at 10:43:15AM -0800, Moritz Lenz wrote:
It's allowed at least for Match objects -- from S05: # The numbered captures may be treated as named, I agree that it's probably not allowed in the general case of Pm |
From @masak<masak> rakudo: grammar G { token TOP { ^ <foo>+ $ }; token foo { ':' |
From @pmichaudJust a note that I expect we will fix this when we implement Pm |
From @pmichaudNow fixed in r34137, thanks! Pm |
1 similar comment
From @pmichaudNow fixed in r34137, thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#60732 (status was 'resolved')
Searchable as RT60732$
The text was updated successfully, but these errors were encountered: