diff --git a/chapters/operatorsandexpressions.tex b/chapters/operatorsandexpressions.tex index d8b49888c..a264be764 100644 --- a/chapters/operatorsandexpressions.tex +++ b/chapters/operatorsandexpressions.tex @@ -1422,6 +1422,13 @@ \subsection{Function Variability}\label{function-variability} This has additional implications for redeclarations, see \cref{function-compatibility}. The purity of the function, see \cref{pure-modelica-functions}, does not influence the variability of the function call. +\begin{nonnormative} +The reason the variability ignores if functions is declared as \lstinline!impure! is that even in this case variability does not depend on the function. +Consider a function reading an external file and returning some value from that file. +Different uses can have the file updated before the simulation (as a parameter-expression), or during the simulation (as a discrete-time expression). +Thus it depends on the use case and the specific file, not the function itself, and it would even be possible to update the file in continuous time (as part of an algorithm) and still use the same function. +\end{nonnormative} + \subsection{Constant Expressions}\label{constant-expressions} Constant expressions\index{constant expression}\index{expression variability!constant} are: