Skip to content
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

r34706 r values should not autovivify #562

Closed
p6rt opened this issue Dec 31, 2008 · 4 comments
Closed

r34706 r values should not autovivify #562

p6rt opened this issue Dec 31, 2008 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 31, 2008

Migrated from rt.perl.org#61882 (status was 'resolved')

Searchable as RT61882$

@p6rt
Copy link
Author

p6rt commented Dec 31, 2008

From publiustemp-perl6compiler2@yahoo.com

Per Larry​: Definitely bug. Rvalues aren't supposed to autovivify.

  $ ./perl6 -e 'my %foo; if %foo<a> {}; say %foo.perl'
  {"a" => undef}

Revision​: 34706

$ uname -a
Darwin
curtis-poes-computer-3.local 9.5.1 Darwin Kernel Version 9.5.1​: Fri Sep
19 16​:19​:24 PDT 2008; root​:xnu-1228.8.30~1/RELEASE_I386 i386

Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

@p6rt
Copy link
Author

p6rt commented Jul 13, 2009

From @kyleha

There's a test for this in S09-autovivification/autovivification.t

@p6rt
Copy link
Author

p6rt commented Apr 17, 2010

From @moritz

Now also tested in S02-builtin_data_types/hash.t, because it's a bit too
fundamental to be in S09 tests only.

Also this now works in Rakudo.

@p6rt
Copy link
Author

p6rt commented Apr 17, 2010

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Apr 17, 2010
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant