Skip to content

SOneTo subtypes AbstractOneTo #1302

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Apr 2, 2025

On a recent nightly (v"1.13.0-DEV.347"), Base has added AbstractOneTo (JuliaLang/julia#56902), and in this PR we change SOneTo to subtype AbstractOneTo when this is available. This makes combinations of SOneTo, Base.OneTo and Integers dispatch to Base methods, and we don't need to disambiguate these in this package.

Fixes #1248. After this, StaticArrays only needs to define similar methods for Tuples of SOneTo as indices.

@jishnub jishnub added the arrays AbstractArray interface and array operations label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays AbstractArray interface and array operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid piracy
1 participant