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

one->oneunit for CartesianIndex #51

Merged
merged 2 commits into from
Jul 21, 2020
Merged

one->oneunit for CartesianIndex #51

merged 2 commits into from
Jul 21, 2020

Conversation

timholy
Copy link
Member

@timholy timholy commented Jun 18, 2020

Fixes #49

@timholy
Copy link
Member Author

timholy commented Jun 18, 2020

Hmm, looks like I never requested JuliaLang/julia#29442 be backported to 1.0. One option would be to drop further support for Julia 1.0. Alternatively we could define a _oneunit method and use it.

@@ -0,0 +1,7 @@
if VERSION <= v"1.0.5"
Copy link
Member

@johnnychen94 johnnychen94 Jul 21, 2020

Choose a reason for hiding this comment

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

I notice there's a backport-1.0 label in JuliaLang/julia#29442, I assume oneunit(::CartesianIndex) will be available for Julia 1.0.6, if there is another release?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added that backport label relatively recently, if memory serves. Hopefully that means it will be available; if not we can change the bounds here.

@timholy timholy merged commit b4ea277 into master Jul 21, 2020
@timholy timholy deleted the teh/oneunit branch July 21, 2020 17:54
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.

Deprecation warnings for CartesianIndex on Julia 1.5 beta
2 participants