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

Add LanguageLevel package. #1130

Open
rocky opened this issue Jan 26, 2021 · 1 comment
Open

Add LanguageLevel package. #1130

rocky opened this issue Jan 26, 2021 · 1 comment

Comments

@rocky
Copy link
Member

rocky commented Jan 26, 2021

Add a mathics package, analygous to packages VectorAnalysis or DiscreteMathCombinatoricaV0.9`, which does what it can to provide compatibility with various WL versions.

I the beginning it could be something no more complicated than:

LanguageLevel::usage = "LanguageLevel[v] Set Mathiics to support WL Version $v$"; 
LanguageLevel[n_Integer] := Unprotect[$VersionNumber];$VersionNumber=n;Protect[$VersionNumber];

Except the above doesn't work. Later on it would include compatibility functions or changes to exisiting functions that support backwards/fowards compatibility.

See also #1131 and #1104 (comment)

@TiagoCavalcante
Copy link
Contributor

It seems to be an error in the evaluation because ClearAttributes is doing what it should and when it tries to change the value of $VersionNumber the attribute Protected is still there.

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

No branches or pull requests

2 participants