-
Notifications
You must be signed in to change notification settings - Fork 167
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
Mismatching order in package.order #4232
Comments
I don't know if the text is unclear, some misunderstanding, or the variants have diverged but what I see is that
package.mo contains the ones in bold in the following order:
So, the sub-set of classes in package.mo keep their relative order from package.order; the other classes Functions, FluidData, SingleGasesData are defined in other files. This allows you to freely order all of the classes (and constants) - regardless of whether they are stored in package.mo or in a separate file (or directory); and without having the weird situation that you have one order in package.mo and then shuffle them in package.order.
I believe it is similar here, but didn't go through all of them. |
I submitted a separate issue against the specification modelica/ModelicaSpecification#3438 to clarify what relative order is. Will update here, depending on the decision there. |
Closing. The Language group agreement was that this should be allowed. |
In Directory Hierarchy Mapping section of the Specification, it says:
There are two cases where the order of classes in package.mo and package.order do not match:
Media/IdealGases/Common/package.mo does not match Media/IdealGases/Common/package.mo, in particular, DataRecord is not followed by SingleGasNasa in package.order
Math/package.mo does not match Math/package.order: classes defined outside of package.mo are interspersed with classes defined in package.mo.
If the the order given in package.order is preferred, the classes in package.mo need to be taken out into stand-alone files.
The text was updated successfully, but these errors were encountered: