Skip to content

Conversation

@KristofferC
Copy link
Contributor

No description provided.

@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...

@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