Tick off "Investigate need for 'final'" #2994
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
According to today's web meeting, I'm setting up this PR for documenting why we're ticking off this item on the road map.
All occurrences of
final
in the https://github.com/modelica/ModelicaSpecification/blob/MCP/0031%2Beliminate-final/RationaleMCP/0031/grammar.md, and things that have made this possible include:final
should have taken place during reduction from full Modelica to Flat Modelica.start
in full Modelica won't be modified at the time of simulation initialization. For this we needed something else in Flat Modelica, and we now instead have the new parameter equations that allows expressing that something can be modified at the time of initialization. That is, to express that the original Full Modelica modification ofstart
was final, one should simply use a normal initial equation instead of a parameter equation.Borrowing examples from https://github.com/modelica/ModelicaSpecification/blob/MCP/0031%2Beliminate-final/RationaleMCP/0031/differences.md: