Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions RationaleMCP/Changes/37/3610.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Discrete-time variability based on GenerateEvents #3610
Copy link
Collaborator

@henrikt-ma henrikt-ma Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting:

Suggested change
Discrete-time variability based on GenerateEvents #3610
# Discrete-time variability based on `GenerateEvents` #3610


# Main change
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push down:

Suggested change
# Main change
## Main change


Variability of functions with GenerateEvents.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting:

Suggested change
Variability of functions with GenerateEvents.
Variability of functions with `GenerateEvents`.


# Reason
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above:

Suggested change
# Reason
## Reason


Making it possible to create functions that generate events similarly as the built-in functions, and have rules consistent with them just being inlined.

# Breaks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above:

Suggested change
# Breaks
## Breaks


``` modelica
function foo
input Real x;
output Integer i=bar(x)+(if x>0 then 1 else 0);
annotation(GenerateEvents=true);
end foo;

function bar
input Real x;
output Integer i=integer(x);
annotation(GenerateEvents=false);
end bar;
Integer x=foo(time);
```

The call of `bar` in `foo` is now illegal, similarly as in a model.
8 changes: 8 additions & 0 deletions RationaleMCP/Changes/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This list the semantic changes in the various versions.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording:

Suggested change
This list the semantic changes in the various versions.
This directory contains descriptions of semantic changes introduced in the various versions.


Clarifications, examples, reformulations, and changes in layout or other external resources will not be included in this list.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the plan was to only describe backwards incompatible changes, that is, to not add descriptions of backwards compatible new features?




Comment on lines +5 to +6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant:

Suggested change

The are separate files for each release to make it easy to maintain during development, but may later be merged.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo and clarification:

Suggested change
The are separate files for each release to make it easy to maintain during development, but may later be merged.
There are separate files for each release to make it easy to maintain during development, but the files may later be merged.


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant:

Suggested change