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

Version Management and Backward Compatibility #32

Open
MaximeBaudette opened this issue Dec 3, 2015 · 3 comments
Open

Version Management and Backward Compatibility #32

MaximeBaudette opened this issue Dec 3, 2015 · 3 comments

Comments

@MaximeBaudette
Copy link
Member

I found the following in Modelica Doc:

In a top-level class, the version number and the dependency to earlier versions of this class are defined using one or more of the following annotations:

  • version = CURRENT-VERSION-NUMBER Defines the version number of the model or package. All classes within this top-level class have this version number.
  • conversion ( noneFromVersion = VERSION-NUMBER) Defines that user models using the VERSION-NUMBER can be upgraded to the CURRENT-VERSION-NUMBER of the current class without any changes.
  • conversion ( from (version = VERSION-NUMBER, script = "…") ) Defines that user models using the VERSION-NUMBER can be upgraded to the CURRENT-VERSION-NUMBER of the current class by applying the given script. The semantics of the conversion script is not defined.
  • uses(IDENT (version = VERSION-NUMBER) ) Defines that classes within this top-level class uses version VERSION-NUMBER of classes within the toplevel class IDENT.

Maybe we should try to implement this, but we need to find out more with the syntax of the script for Dymola. I can already add when there is no conversion needed in the next version.

@dietmarw
Copy link
Contributor

dietmarw commented Dec 3, 2015

You can find details on the Dymola syntax with the MSL:
https://trac.modelica.org/Modelica/browser/Modelica/trunk/Modelica/Resources/Scripts/Dymola/Description.txt

Mind that there is an ongoing process to finally standardise the Modelica Script language
https://trac.modelica.org/Modelica/ticket/1443
which lead to
https://trac.modelica.org/Modelica/ticket/1622
So there is hope that there will be one standard solution that is also supported by tools other than Dymola.

@dietmarw
Copy link
Contributor

dietmarw commented Dec 3, 2015

In case that was not clear, for version numbers you should stick to the http://semver.org/ principle.

@MaximeBaudette
Copy link
Member Author

@dietmarw
Don't worry, I got it for the version numbering :-)
Good news if the scripting is standardized... That was a jungle to find information about it otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants