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
Null PMC access when doing hash indexing on a hash ref in Rakudo #1929
Comments
From @masak<cosimo> rakudo: my %h=('a'=>1,'b'=>2); my $h_ref=\%h; say $h_ref.{'a'} |
@coke - Status changed from 'new' to 'open' |
From @cokeOn Sun Jul 11 06:30:54 2010, masak wrote:
the NPA is gone, but I'm not sure this is better: 11:58 < [Coke]> rakudo: my %h=('a'=>1,'b'=>2); my $h_ref=\%h; say $h_ref.{'a'} -- |
From @diakopternew behavior and commentary: 12:36 < diakopter> rakudo: my %h=('a'=>1,'b'=>2); my $h_ref=\%h; say |
From @cokeOn Sun Oct 09 08:59:47 2011, coke wrote:
Behavior has changed again - 23:45 <[Coke]> rakudo: my %h=('a'=>1,'b'=>2); my $h_ref=\%h; say $h_ref.{'a'} -- |
From @usev6Since the Null PMC access is gone, I'm inclined to close this ticket (after adding a test or two). $ perl6 -e 'my %h=("a"=>1,"b"=>2); my $h_ref=\%h; say $h_ref.{"a"}' WRT the following command I wonder what output is expected currently. It looks as if the content of %h is put in the "list" part of the Capture: $ perl6 -e 'my %h=(a=>1,b=>2); my $ref = \%h; say $ref.perl; say $ref[0].perl' I'm not sure if that's the right thing. If that's not the case, IMHO a new ticket should be created for that problem, considering $ perl6 -e 'say (\(a=>1,b=>2)).perl' $ perl6 -e 'say (\%(a=>1,b=>2)).perl' |
1 similar comment
From @usev6Since the Null PMC access is gone, I'm inclined to close this ticket (after adding a test or two). $ perl6 -e 'my %h=("a"=>1,"b"=>2); my $h_ref=\%h; say $h_ref.{"a"}' WRT the following command I wonder what output is expected currently. It looks as if the content of %h is put in the "list" part of the Capture: $ perl6 -e 'my %h=(a=>1,b=>2); my $ref = \%h; say $ref.perl; say $ref[0].perl' I'm not sure if that's the right thing. If that's not the case, IMHO a new ticket should be created for that problem, considering $ perl6 -e 'say (\(a=>1,b=>2)).perl' $ perl6 -e 'say (\%(a=>1,b=>2)).perl' |
From @usev6On Wed Oct 29 05:41:15 2014, bartolin@gmx.de wrote:
I added the tests to S02-literals/autoref.t with commit Raku/roast@bca6134945.
I'm closing this ticket now. |
1 similar comment
From @usev6On Wed Oct 29 05:41:15 2014, bartolin@gmx.de wrote:
I added the tests to S02-literals/autoref.t with commit Raku/roast@bca6134945.
I'm closing this ticket now. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76462 (status was 'resolved')
Searchable as RT76462$
The text was updated successfully, but these errors were encountered: