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

fix package for the upcoming 1.7 release #76

Merged
merged 3 commits into from
Jul 2, 2021

Conversation

KristofferC
Copy link
Contributor

No description provided.

@traitimpl IsBits{X} <- _isbits(X)

"Trait of all immutable types"
@traitdef IsImmutable{X}
Base.@pure _isimmutable(X) = !X.mutable
if VERSION >= v"1.7.0-DEV.1279"
Base.@pure _isimmutable(x) = !(x.name.flags & 0x2 == 0x2)
Copy link
Owner

@mauro3 mauro3 Jul 1, 2021

Choose a reason for hiding this comment

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

I don't follow. What is this about? I tried a quick search on julialang but no luck. Tnx!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

JuliaLang/julia#41018

But actually, I think just using ismutabletype works.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

YOLO github edit...

src/base-traits.jl Outdated Show resolved Hide resolved
@KristofferC
Copy link
Contributor Author

You need to approve the workflow to run I think.

@KristofferC
Copy link
Contributor Author

👍

@mauro3 mauro3 merged commit da9670e into mauro3:master Jul 2, 2021
@mauro3
Copy link
Owner

mauro3 commented Jul 2, 2021

Thanks Kristoffer!
Do you know off by hand what I need to add to Project.toml that on Julia1.7 older version do not get installed?

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.

2 participants