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

Rakudo cannot take a slice out of a Range #558

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

Rakudo cannot take a slice out of a Range #558

p6rt opened this issue Dec 30, 2008 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Dec 30, 2008

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

Searchable as RT61848$

@p6rt
Copy link
Author

p6rt commented Dec 30, 2008

From @masak

Rakudo often treats Ranges as a kind of List, but in the case of list
slices, r34628 currently fails with a runtime error​:

$ perl6 -e 'say ("a".."z")[0]'
elements() not implemented in class 'Range'
[...]

@p6rt
Copy link
Author

p6rt commented Feb 14, 2009

From jswitzer@gmail.com

On Tue Dec 30 01​:49​:32 2008, masak wrote​:

Rakudo often treats Ranges as a kind of List, but in the case of list
slices, r34628 currently fails with a runtime error​:

$ perl6 -e 'say ("a".."z")[0]'
elements() not implemented in class 'Range'
[...]

Support has been added to my fork hosted on github​:

http://github.com/s1n/rakudo/commit/1de512e97ed339c4e7edfa694b0d92421ea542ec

This will need some refactoring in the future, but will suffice for now.

-Jason "s1n" Switzer

@p6rt
Copy link
Author

p6rt commented Feb 14, 2009

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

@p6rt
Copy link
Author

p6rt commented Apr 16, 2009

From @tene

This works in current rakudo. If there needs to be more work on this in
the future (as suggested in a comment on the ticket), either a new
ticket needs to be filed or this one needs to be reopened with more
detail on what needs to be done.

@p6rt
Copy link
Author

p6rt commented Apr 16, 2009

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

@p6rt p6rt closed this as completed Apr 16, 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