Re: PerlHash.get_pmc_keyed of non existing key

2003-08-23 Thread Gordon Henriksen
On Saturday, August 23, 2003, at 11:14 , Sean O'Rourke wrote: Luke Palmer <[EMAIL PROTECTED]> writes: Gordon Henriksen writes: my $ref = [EMAIL PROTECTED]; $$ref = "value"; print '@ary[0] : ', @ary[0], "\n"; # -> @ary[0] : value That has to do with autovivification seman

Re: PerlHash.get_pmc_keyed of non existing key

2003-08-23 Thread Gordon Henriksen
On Saturday, August 23, 2003, at 10:37 , Luke Palmer wrote: Gordon Henriksen writes: Taking a thread from Perl 6 Internals. Will Perl 6 support this behavior? $ perl <<'EOT' my @ary; my $ref = \$ary[0]; $$ref = "value"; prin

Re: PerlHash.get_pmc_keyed of non existing key

2003-08-23 Thread Sean O'Rourke
Luke Palmer <[EMAIL PROTECTED]> writes: > Gordon Henriksen writes: >> my $ref = [EMAIL PROTECTED]; >> $$ref = "value"; >> print '@ary[0] : ', @ary[0], "\n"; # -> @ary[0] : value > > That has to do with autovivification semantics. Particularly, do things > autovivify when you take

Re: PerlHash.get_pmc_keyed of non existing key

2003-08-23 Thread Luke Palmer
Gordon Henriksen writes: > Taking a thread from Perl 6 Internals. Will Perl 6 support this behavior? > > $ perl <<'EOT' > my @ary; > my $ref = \$ary[0]; > $$ref = "value"; > print '$ary[0] : ', $ary[0], "\n"; > EOT > $ary[0]

Re: PerlHash.get_pmc_keyed of non existing key

2003-08-23 Thread Gordon Henriksen
Taking a thread from Perl 6 Internals. Will Perl 6 support this behavior? $ perl <<'EOT' my @ary; my $ref = \$ary[0]; $$ref = "value"; print '$ary[0] : ', $ary[0], "\n"; EOT $ary[0] : value Presumably the Perl