Skip to content
Open
Show file tree
Hide file tree
Changes from all 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/3_7/3610.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Discrete-time variability based on `GenerateEvents` #3610

## Main change

Variability of functions with `GenerateEvents`.

## 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

``` 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.
5 changes: 5 additions & 0 deletions RationaleMCP/Changes/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This directory contains descriptions of semantic changes, particularly backwards incompatible changes, introduced in the various versions.

Clarifications, new or modified examples, reformulations, and changes in layout or other external resources will not be included in this list.

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