Skip to content

Suport sliced with Enumerator::ArithmeticSequence on Array#6927

Merged
enebo merged 1 commit intojruby:masterfrom
edipofederle:elf-array-sliced-enum-arithmetic-sequence
Nov 24, 2021
Merged

Suport sliced with Enumerator::ArithmeticSequence on Array#6927
enebo merged 1 commit intojruby:masterfrom
edipofederle:elf-array-sliced-enum-arithmetic-sequence

Conversation

@edipofederle
Copy link
Contributor

@edipofederle edipofederle commented Nov 1, 2021

Support sliced with Enumerator::ArithmeticSequence on Array

@edipofederle edipofederle changed the title Initial commit on support sliced with Enumerator::ArithmeticSequence … Suport sliced with Enumerator::ArithmeticSequence on Array Nov 1, 2021
@headius
Copy link
Member

headius commented Nov 10, 2021

This feature is the only thing not passing on master's 3.0 specs. Let us know if you want some help getting it finished!

@headius headius added this to the JRuby 9.4.0.0 milestone Nov 10, 2021
@headius headius linked an issue Nov 10, 2021 that may be closed by this pull request
@edipofederle
Copy link
Contributor Author

This feature is the only thing not passing on master's 3.0 specs. Let us know if you want some help getting it finished!

Hi @headius,

I'm planing back to work on it today or tomorrow, I let you know if I need something here.

@edipofederle edipofederle force-pushed the elf-array-sliced-enum-arithmetic-sequence branch 3 times, most recently from 26eb457 to 4be10ec Compare November 19, 2021 17:25
Copy link
Member

@enebo enebo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I mentioned using subseq in chat.

@edipofederle edipofederle force-pushed the elf-array-sliced-enum-arithmetic-sequence branch from 58c1cc2 to 66102e0 Compare November 22, 2021 16:55
@edipofederle edipofederle marked this pull request as ready for review November 22, 2021 16:56
@edipofederle edipofederle requested a review from enebo November 24, 2021 09:46
@enebo enebo merged commit 6896611 into jruby:master Nov 24, 2021
@enebo
Copy link
Member

enebo commented Nov 24, 2021

Thanks @edipofederle! Keep these PRs coming :)

@edipofederle edipofederle deleted the elf-array-sliced-enum-arithmetic-sequence branch November 24, 2021 14:20
enebo added a commit that referenced this pull request Nov 24, 2021
After #6927 landed I was planning on addressing aref not accepting
ThreadContext and push it through the new code from that PR.

There are two other fixes I missed from reviewing that PR:
 1. In code for stepping when it is known to only be one result it never returned the result
 2. The new code in a couple of places access values field directly.  This will work but because Array has object shaping we prefer to call through methods.
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

Successfully merging this pull request may close these issues.

Ruby 3.0 Support

3 participants