diff --git a/RationaleMCP/Changes/3_7/3610.md b/RationaleMCP/Changes/3_7/3610.md new file mode 100644 index 000000000..3ae5aca1e --- /dev/null +++ b/RationaleMCP/Changes/3_7/3610.md @@ -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. diff --git a/RationaleMCP/Changes/Readme.md b/RationaleMCP/Changes/Readme.md new file mode 100644 index 000000000..0f723df55 --- /dev/null +++ b/RationaleMCP/Changes/Readme.md @@ -0,0 +1,8 @@ +This list the semantic changes in the various versions. + +Clarifications, examples, reformulations, and changes in layout or other external resources will not be included in this list. + + + +The are separate files for each release to make it easy to maintain during development, but may later be merged. +