Skip to content

Define that package.order requires a package - #3928

Open
HansOlsson wants to merge 2 commits into
modelica:masterfrom
HansOlsson:OrderOnlyPackages
Open

Define that package.order requires a package#3928
HansOlsson wants to merge 2 commits into
modelica:masterfrom
HansOlsson:OrderOnlyPackages

Conversation

@HansOlsson

Copy link
Copy Markdown
Collaborator

and that only packages should be stored as package.mo.
Closes #3921

Note: I generalized it to require that even package.mo should (so, there might be exceptions) be a package. We might revisit that, but I think it is a good general rule.
I agree that having package.order for a non-package would be really problematic - as there are non-constants, equations etc that must be ordered.

Having package.mo for a non-package would to me only make sense for a top-level class where you want to store resources as if it were a package, and in that case having sub-classes (and especially sub-classes stored externally) doesn't really make sense.

@HansOlsson
HansOlsson requested a review from henrikt-ma July 15, 2026 16:00
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

Successfully merging this pull request may close these issues.

Can a non-package have a package.order?

1 participant