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

Indexing with reversed ranges (which ought to be null ranges) doesn't return an empty list in Rakudo #554

Closed
p6rt opened this issue Dec 30, 2008 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Dec 30, 2008

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

Searchable as RT61842$

@p6rt
Copy link
Author

p6rt commented Dec 30, 2008

From @masak

Rakudo r34628​:

$ perl6 -e 'say (2..1).elems' # right
0

$ perl6 -e 'say (1,1)[2..1].elems' # wrong
2

@p6rt
Copy link
Author

p6rt commented Dec 30, 2008

From @pmichaud

On Tue Dec 30 01​:43​:10 2008, masak wrote​:

Rakudo r34628​:

$ perl6 -e 'say (2..1).elems' # right
0

$ perl6 -e 'say (1,1)[2..1].elems' # wrong
2

Now fixed in r34652​:

say (1,1)[2..1].elems
0

This ticket can be closed when we verify there's a suitable spectest.
Thanks!

Pm

@p6rt
Copy link
Author

p6rt commented Dec 30, 2008

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

@p6rt
Copy link
Author

p6rt commented Jan 5, 2009

From @moritz

On Tue Dec 30 09​:28​:21 2008, pmichaud wrote​:

On Tue Dec 30 01​:43​:10 2008, masak wrote​:

Rakudo r34628​:

$ perl6 -e 'say (2..1).elems' # right
0

$ perl6 -e 'say (1,1)[2..1].elems' # wrong
2

Now fixed in r34652​:

say (1,1)[2..1].elems
0

This ticket can be closed when we verify there's a suitable spectest.
Thanks!

Added to t/spec/S09-subscript_slice/slice.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jan 5, 2009

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

@p6rt p6rt closed this as completed Jan 5, 2009
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