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

Prepare package for Julia v1.7 #302

Closed
wants to merge 4 commits into from
Closed

Prepare package for Julia v1.7 #302

wants to merge 4 commits into from

Conversation

nandoconde
Copy link

Change T.mutable for ismutabletype

@nandoconde
Copy link
Author

Weird Error in nightly builds for Linux and macOS, but Windows is OK, so everything seems fine.

@nandoconde
Copy link
Author

@timholy @simonster

@@ -458,7 +458,7 @@ function read_vals_default(obj::JldDataset, dtype::HDF5.Datatype, T::Type, dspac
dsel_id::HDF5.hid_t, dims::Tuple{Vararg{Int}})
out = Array{T}(undef, dims)
# Empty objects don't need to be read at all
T.size == 0 && !T.mutable && return out
T.size == 0 && !((VERSION >= v"1.7.0-DEV.1279") ? (Base.ismutabletype(T)) : (T.mutable)) && return out
Copy link
Member

Choose a reason for hiding this comment

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

Better to define

if isdefined(Base, :ismutabletype)
    ismutabletype(T) = Base.ismutabletype(T)
else
    ismutabletype(T) = T.mutable
end

and then call ismutabletype(T). That way you don't have a runtime VERSION check, and you only have to put the check in one place.

Copy link
Member

Choose a reason for hiding this comment

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

@timholy
Copy link
Member

timholy commented Oct 28, 2021

Let's get the Compat PR JuliaLang/Compat.jl#759 merged first and then rework this to use Compat.

@timholy
Copy link
Member

timholy commented Oct 28, 2021

FYI @nandoconde, I officially retired from maintaining this package a long time ago, so long ago that I can't even remember where I posted the announcement. (I started too many 😄.) Likewise, Simon is on to other things. https://github.com/orgs/JuliaIO/people has a list of potential alternatives.

@nandoconde
Copy link
Author

Thank you both for the review!!

As soon as JuliaLang/Compat.jl#759 is merged, I will use it to improve this one.

@timholy
Copy link
Member

timholy commented Oct 29, 2021

@mauro3
Copy link

mauro3 commented Dec 10, 2021

It would be good to get this done now that 1.7 is out.

@musm
Copy link
Member

musm commented Dec 14, 2021

fixed by #303

@musm musm closed this Dec 14, 2021
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.

5 participants