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

item(%hash) does not itemize #3096

Closed
p6rt opened this issue Apr 1, 2013 · 3 comments
Closed

item(%hash) does not itemize #3096

p6rt opened this issue Apr 1, 2013 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Apr 1, 2013

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

Searchable as RT117431$

@p6rt
Copy link
Author

p6rt commented Apr 1, 2013

From @moritz

21​:13 < lizmat> rn​: my %bar= <foo baz>; say item %bar
21​:13 <+p6eval> niecza v24-35-g5c06e28​: OUTPUT«{"foo" => "baz"}␤»
21​:13 <+p6eval> ..rakudo ffe441​: OUTPUT«("foo" => "baz").hash␤»
21​:13 < moritz> rakudo's looks wrong to me
21​:14 <+p6eval> rakudo ffe441, niecza v24-35-g5c06e28​: OUTPUT«2␤»
21​:14 < moritz> nr​: my %bar = <a b c d>; my $c = 0; ++$c for item %bar;
say $c
21​:14 <+p6eval> rakudo ffe441​: OUTPUT«2␤»
21​:14 <+p6eval> ..niecza v24-35-g5c06e28​: OUTPUT«1␤»
21​:14 < moritz> niecza is right here, and rakudo is wrong
21​:14 * moritz submits rakudobug

iterating over an itemized $anything should result in just one
iteration, which is why rakudo's output is wrong.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jul 20, 2014

From @FROGGS

FROGGS m​: my %bar= <foo baz>; say item %bar
camelia rakudo-moar bbdcfd​: OUTPUT«{"foo" => "baz"}␤»

Test​: Raku/roast@c6e4b9bc86

@p6rt p6rt closed this as completed Jul 20, 2014
@p6rt
Copy link
Author

p6rt commented Jul 20, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant