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

Cross meta operator flattens arrays #1663

Closed
p6rt opened this issue Apr 5, 2010 · 5 comments
Closed

Cross meta operator flattens arrays #1663

p6rt opened this issue Apr 5, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 5, 2010

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

Searchable as RT74072$

@p6rt
Copy link
Author

p6rt commented Apr 5, 2010

From @moritz

22​:03 <@​TimToady> rakudo​: say [1,2] X~ <a b> # /me suspects a bug
22​:03 <+p6eval> rakudo c41cf3​: OUTPUT«1a1b2a2b␤»
22​:03 <@​TimToady> yes, a bug
22​:03 <@​TimToady> [1,2] should not flatten in list context
22​:04 <@​moritz_> rakudo​: .say for 1, [2, 3], 4
22​:04 <+p6eval> rakudo c41cf3​: OUTPUT«1␤23␤4␤»
22​:04 <@​moritz_> and I know why... the signature of X and X~ says Iterable
22​:04 <@​TimToady> I think X~ is taking liberties
22​:04 * moritz_ reports

@p6rt
Copy link
Author

p6rt commented Aug 18, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @moritz

now has a test in t/spec/S03-metaops/cross.t, but still doesn't pass.

@p6rt
Copy link
Author

p6rt commented Feb 25, 2014

From @FROGGS

<dalek> rakudo/nom​: e6c7baf | larry++ | src/core/metaops.pm​:
<dalek> rakudo/nom​: [1,2] Xop <a b> now treats [] as item
<dalek> rakudo/nom​: review​: rakudo/rakudo@e6c7baf01d
<dalek> roast​: 4658683 | larry++ | S03-metaops/cross.t​:
<dalek> roast​: [1,2] Xop <a b> no longer todo
<dalek> roast​: review​: Raku/roast@4658683faa
<TimToady> someone with an rt login can close RT74072 now

@p6rt
Copy link
Author

p6rt commented Feb 25, 2014

@FROGGS - Status changed from 'open' 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