Skip to content

Commit

Permalink
Don't say that end is a function call, and be a bit clearer. (modelic…
Browse files Browse the repository at this point in the history
…a#3361)

* Don't say that end is a function call, and be a bit clearer.
Closes modelica#3351
* Update chapters/operatorsandexpressions.tex
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson committed Apr 14, 2023
1 parent 1f465f2 commit b82222d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1526,13 +1526,13 @@ \subsection{Evaluable Expressions}\label{evaluable-expressions}
Input variables in functions behave as though they were evaluable expressions.
\item
Except for the special built-in operators \lstinline!initial!, \lstinline!terminal!, \lstinline!der!, \lstinline!edge!, \lstinline!change!, \lstinline!sample!, and \lstinline!pre!, a function or operator with evaluable subexpressions is an evaluable expression.
\item
The sub-expression \lstinline!end! used in \lstinline!A[$\ldots$ end $\ldots$]! if \lstinline!A! is a variable declared in a non-\lstinline!function! class.
\item
Some function calls are evaluable expressions even if the arguments are not:
\begin{itemize}
\item
\lstinline!cardinality(c)!, see restrictions for use in \cref{cardinality-deprecated}.
\item
\lstinline!end! in \lstinline!A[$\ldots$ end $\ldots$]! if \lstinline!A! is variable declared in a non-\lstinline!function! class.
\item
\lstinline!size(A)! (including \lstinline!size(A, j)! where \lstinline!j! is an evaluable expression) if \lstinline!A! is variable declared in a non-function class.
\item
Expand Down

0 comments on commit b82222d

Please sign in to comment.