Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

sub-hashes don't autovivify. #51

Closed
coke opened this Issue · 2 comments

3 participants

@coke
Owner
$ cat err.pm 
my %hash;
%hash<a><b> := 1;
$ nqp err.pm 
SixModelObject does not implement set_pmc_keyed_str
current instr.: '' pc 72 ((file unknown):48) (err.pm:1)
called from Sub '' pc 29439 (src/stage2/gen/NQPHLL.pir:11153) (src/stage2/gen/NQPHLL.pm:1224)
called from Sub 'eval' pc 29291 (src/stage2/gen/NQPHLL.pir:11092) (src/stage2/gen/NQPHLL.pm:1211)
called from Sub 'evalfiles' pc 31756 (src/stage2/gen/NQPHLL.pir:12102) (src/stage2/gen/NQPHLL.pm:1424)
called from Sub 'command_eval' pc 30711 (src/stage2/gen/NQPHLL.pir:11694) (src/stage2/gen/NQPHLL.pm:1359)
called from Sub 'command_line' pc 30013 (src/stage2/gen/NQPHLL.pir:11433) (src/stage2/gen/NQPHLL.pm:1309)
called from Sub 'MAIN' pc 760 (src/stage2/gen/NQP.pir:250) (src/stage2/gen/NQP.pm:3085)
called from Sub '' pc 443 (src/stage2/gen/NQP.pir:155) (src/stage2/gen/NQP.pm:1475)
@jnthn
Owner

NQP is a subset of Perl 6. Hash autoviv like this is something that took some effort and complexity to get right in Rakudo, where we are implementing all of Perl 6. While it's convenient, considering how we provide it in Rakudo and not being able to see an easy mapping of it back into NQP, I think it's beyond the scope of NQP to provide this.

@jnthn jnthn closed this
@pmichaud
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.