Skip to content

fix: Base._unsetindex! -> Base.unsetindex! - #987

Merged
nsajko merged 2 commits into
JuliaCollections:masterfrom
ReubenJ:fix/unsetindex
Oct 3, 2026
Merged

nsajko merged 2 commits into
JuliaCollections:masterfrom
ReubenJ:fix/unsetindex

Conversation

@ReubenJ

@ReubenJ ReubenJ commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Julia 1.14 introduced a public API for Base._unsetindex! and adds a deprecation warning for the old, private Base._unsetindex!. This change adds an isdefined check that uses the Base.unsetindex! definition if it is present, and falls back to the Base._unsetindex! definition if not.

Closes: #986.

Julia 1.14 introduced a public API for `Base._unsetindex!` and
adds a deprecation warning for the old, private `Base._unsetindex!`.
This change adds an `isdefined` check that uses the `Base.unsetindex!`
definition if it is present, and falls back to the `Base._unsetindex!`
definition if not.

Closes: JuliaCollections#986.
Comment thread src/DataStructures.jl Outdated
Co-authored-by: Neven Sajko <prosaic.37-element@icloud.com>
@nsajko
nsajko merged commit 4e8eee9 into JuliaCollections:master Oct 3, 2026
11 of 12 checks passed
@ReubenJ
ReubenJ deleted the fix/unsetindex branch October 4, 2026 11:27
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 warning for _unsetindex! for Julia 1.14 nightly

2 participants