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

X metaoperator fails with bag keys #3126

Closed
p6rt opened this issue May 8, 2013 · 4 comments
Closed

X metaoperator fails with bag keys #3126

p6rt opened this issue May 8, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented May 8, 2013

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

Searchable as RT117915$

@p6rt
Copy link
Author

p6rt commented May 8, 2013

From @grondilu

This is perl6 version 2013.04-43-g5ad46fd built on parrot 5.2.0 revision RELEASE_5_2_0

my Bag $bag .= new​: <foo foo bar>;
for $bag.keys X $bag.keys -> $a, $b {
  say $a, $b;
}

No output, no error. The program never enters the for loop. It should.

@p6rt
Copy link
Author

p6rt commented Oct 15, 2014

From @usev6

This works now (on Moar, Parrot and JVM)​:

$ perl6 -e 'my Bag $bag .= new​: <foo foo bar>; for $bag.keys X $bag.keys -> $a, $b { say $a, $b }'
foofoo
foobar
barfoo
barbar

I added a test to S02-types/bag.t with the following commit​: Raku/roast@245c5988e7

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 15, 2014

From @usev6

This works now (on Moar, Parrot and JVM)​:

$ perl6 -e 'my Bag $bag .= new​: <foo foo bar>; for $bag.keys X $bag.keys -> $a, $b { say $a, $b }'
foofoo
foobar
barfoo
barbar

I added a test to S02-types/bag.t with the following commit​: Raku/roast@245c5988e7

@p6rt p6rt closed this as completed Oct 15, 2014
@p6rt
Copy link
Author

p6rt commented Oct 15, 2014

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

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

No branches or pull requests

1 participant