Mathics icon indicating copy to clipboard operation
Mathics copied to clipboard

Add LanguageLevel package.

Open rocky opened this issue 4 years ago • 1 comments

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 https://github.com/mathics/Mathics/pull/1104#issuecomment-767428359

rocky avatar Jan 26 '21 10:01 rocky

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.

TiagoCavalcante avatar Jun 28 '21 12:06 TiagoCavalcante