-
Notifications
You must be signed in to change notification settings - Fork 41
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
Purpose of stored-definition with several class definitions, and the within-clause #3466
Comments
Historically it has been used (e.g., for "SaveTotal") - especially without within. Really annoying users can use it combination with within.
I don't see that
I don't know if there's a more relevant use case for this. |
Basically |
There wouldn't be a clear way to name that file. So in addition to generalizing the
I'd prefer steering away from |
I checked https://specification.modelica.org/master/packages.html#mapping-a-package-class-hierarchy-into-a-single-file-nonstructured-entity and already in Modelica 3.0 (possibly earlier) it is split into three cases:
So, I don't see a major issue with the within-clause in combination with several class definitions. |
This is only when mapping a package hierarchy to the file system.
Right, so no need to worry about ModelicaPath here.
What prevents MyClasses.mo from placing classes within some package? Anyway, at least I have a difficulty extracting the rules and purpose of files with non-1 class definitions from the current text. Wouldn't it be easier to express clearly by describing such files in a separate paragraph somewhere? |
Yes, that is the meaning of storing a file inside a package. Note that
That
|
Yes, I think that would be helpful, especially if combined with something along the following lines in a separate section before File System Mapping of Package/Class:
Any suggestions for what would be a good title of that section? How about Stored Definitions Containing Multiple Class Definitions? |
What is the purpose of allowing
stored-definition
to have zero or several class definitions?If we are to keep it this way, the definition of the
within
-clause would need to be updated to better cover the case of not just a single class definition.The text was updated successfully, but these errors were encountered: