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

Whatever index is wrong when autovivifying an array #5269

Closed
p6rt opened this issue Apr 27, 2016 · 6 comments
Closed

Whatever index is wrong when autovivifying an array #5269

p6rt opened this issue Apr 27, 2016 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 27, 2016

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

Searchable as RT128005$

@p6rt
Copy link
Author

p6rt commented Apr 27, 2016

From @raydiak

from http://irclog.perlgeek.de/perl6/2016-04-27#i_12398550

06​:43 raydiak m​: my %foo; %foo<bar>[*-0] = 42; say %foo.perl;
06​:43 camelia rakudo-moar ce5dc0​: OUTPUT«{​:bar($[Any, 42])}␤»
06​:43 raydiak ^ where did the Any come from?
06​:43 m​: my @​foo; @​foo[*-0] = 42; say @​foo.perl;
06​:43 camelia rakudo-moar ce5dc0​: OUTPUT«[42]␤»
06​:45 raydiak m​: my %foo; %foo<bar>.push​: 42; say %foo.perl;
06​:45 camelia rakudo-moar ce5dc0​: OUTPUT«{​:bar($[42])}␤»
06​:45 masak raydiak​: looks bugly to me
06​:46 raydiak thanks masak, I'll file a report then

@p6rt
Copy link
Author

p6rt commented Jul 18, 2016

From @zoffixznet

♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁

TODO-fudged tests added in Raku/roast@e1e96176cd

🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 18, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 18, 2016

From @zoffixznet

The problem is unvivified item is an `Any` and Any.cache.elems returns 1, because it's a "1-item list" thing. I tried a blunt-force solution but the impact is rather pervasive and gives ~~11% slowdown​: https://gist.github.com/zoffixznet/8574ee473e590d709d5e0051914249bd

@p6rt
Copy link
Author

p6rt commented Dec 19, 2016

From @lizmat

Fixed with 08ff3db, can be closed.

@p6rt
Copy link
Author

p6rt commented Dec 19, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 19, 2016
@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