Skip to content

Commit

Permalink
Add new section with references to the implications.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed May 27, 2021
1 parent 571a7c3 commit 92e88a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chapters/operatorsandexpressions.tex
Expand Up @@ -1378,7 +1378,6 @@ \section{Variability of Expressions}\label{variability-of-expressions}
If \lstinline!v! is a discrete-time component then \lstinline!expr! needs to be a
discrete-time expression.
\end{itemize}
Note that for a function call it is also necessary to consider the variability of any used default arguments, especially if the function is redeclared, see \cref{function-compatibility}.

\begin{example}
The (underdetermined) model \lstinline!Test! below illustrates two kinds of consequences due to variability constraints.
Expand Down Expand Up @@ -1415,6 +1414,10 @@ \section{Variability of Expressions}\label{variability-of-expressions}
end Test;
\end{lstlisting}
\end{example}
\subsection{Function Variability}\label{function-variability}
The variability of function calls need to consider both the variability of arguments directly given in the function and the variability of the used default arguments, if any.
This is especially a concern for functions given as a short class, see \cref{inheritance-of-functions}.
This has additional implications for redeclarations, see \cref{function-compatibility}.

\subsection{Constant Expressions}\label{constant-expressions}

Expand Down

0 comments on commit 92e88a6

Please sign in to comment.