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

Ranges shouldn't flatten inside junctions in Rakudo #1918

Closed
p6rt opened this issue Jul 8, 2010 · 6 comments
Closed

Ranges shouldn't flatten inside junctions in Rakudo #1918

p6rt opened this issue Jul 8, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jul 8, 2010

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

Searchable as RT76422$

@p6rt
Copy link
Author

p6rt commented Jul 8, 2010

From @masak

<dolmen__> rakudo​: say (1..2) | (4..5)
<p6eval> rakudo e59795​: OUTPUT«any(1, 2, 4, 5)␤»
<TimToady> rakudo​: say (1..23) | (1000..2000)
<p6eval> rakudo e59795​: ( no output )
<TimToady> those ranges shouldn't be flattening
<TimToady> item context isn't supposed to flatten
<TimToady> rakudo​: say (1..23) | (100..105)
<p6eval> rakudo e59795​: OUTPUT«any(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 100, 101, 102, 103,
104, 105)␤»
<TimToady> blech
<TimToady> pmichaud​: ^^
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 20, 2011

From @coke

On Thu Jul 08 09​:18​:42 2010, masak wrote​:

<dolmen__> rakudo​: say (1..2) | (4..5)
<p6eval> rakudo e59795​: OUTPUT«any(1, 2, 4, 5)␤»
<TimToady> rakudo​: say (1..23) | (1000..2000)
<p6eval> rakudo e59795​: ( no output )
<TimToady> those ranges shouldn't be flattening
<TimToady> item context isn't supposed to flatten
<TimToady> rakudo​: say (1..23) | (100..105)
<p6eval> rakudo e59795​: OUTPUT«any(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 100, 101, 102, 103,
104, 105)␤»
<TimToady> blech
<TimToady> pmichaud​: ^^
* masak submits rakudobug

No change in the past year+.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 20, 2011

From @jnthn

On Thu Oct 20 07​:39​:22 2011, coke wrote​:

On Thu Jul 08 09​:18​:42 2010, masak wrote​:

<dolmen__> rakudo​: say (1..2) | (4..5)
<p6eval> rakudo e59795​: OUTPUT«any(1, 2, 4, 5)␤»
<TimToady> rakudo​: say (1..23) | (1000..2000)
<p6eval> rakudo e59795​: ( no output )
<TimToady> those ranges shouldn't be flattening
<TimToady> item context isn't supposed to flatten
<TimToady> rakudo​: say (1..23) | (100..105)
<p6eval> rakudo e59795​: OUTPUT«any(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 100, 101, 102, 103,
104, 105)␤»
<TimToady> blech
<TimToady> pmichaud​: ^^
* masak submits rakudobug

No change in the past year+.

Fixed.

say (1..23) | (100..105)
any(1..23, 100..105)

Test needed.

/jnthn

@p6rt
Copy link
Author

p6rt commented Oct 24, 2011

From @moritz

Tested in S03-junctions/autothreading.t

@p6rt
Copy link
Author

p6rt commented Oct 24, 2011

@moritz - 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