Skip to content

Commit

Permalink
Say "colon" before (:) (that is, a colon inside parentheses)
Browse files Browse the repository at this point in the history
If we'd like to avoid spelling out "colon", we should quote the colon rather than putting it inside parentheses.
  • Loading branch information
henrikt-ma committed Mar 4, 2021
1 parent c114714 commit 633b9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/functions.tex
Expand Up @@ -162,7 +162,7 @@ \section{Function as a Specialized Class}\label{function-as-a-specialized-class}
\end{nonnormative}
A function \emph{cannot contain} calls to the Modelica \emph{built-in operators} \lstinline!der!, \lstinline!initial!, \lstinline!terminal!, \lstinline!sample!, \lstinline!pre!, \lstinline!edge!, \lstinline!change!, \lstinline!reinit!, \lstinline!delay!, \lstinline!cardinality!, \lstinline!inStream!, \lstinline!actualStream!, to the operators of the built-in package \lstinline!Connections!, to the operators defined in \cref{synchronous-language-elements} and \cref{state-machines}, and is not allowed to contain when-statements.
\item
The dimension \emph{sizes} not declared with (\lstinline!:!) of each array result or array local variable (i.e., a non-input components) of a function must be either given by the input formal parameters, or given by constant or parameter expressions, or by expressions containing combinations of those (\cref{initialization-and-binding-equations-of-components-in-functions}).
The dimension \emph{sizes} not declared with colon (\lstinline!:!) of each array result or array local variable (i.e., a non-input component) of a function must be either given by the input formal parameters, or given by constant or parameter expressions, or by expressions containing combinations of those (\cref{initialization-and-binding-equations-of-components-in-functions}).
\item
For initialization of local variables of a function see \cref{initialization-and-binding-equations-of-components-in-functions}).
\item
Expand Down Expand Up @@ -205,7 +205,7 @@ \section{Function as a Specialized Class}\label{function-as-a-specialized-class}
\item
A function may have a \lstinline!return! statement in its algorithm section body.
\item
A function allows dimension sizes declared with (\lstinline!:!) to be resized for non-input array variables, see \cref{flexible-array-sizes-and-resizing-of-arrays-in-functions}.
A function allows dimension sizes declared with colon (\lstinline!:!) to be resized for non-input array variables, see \cref{flexible-array-sizes-and-resizing-of-arrays-in-functions}.
\item
A function may be defined in a short function definition to be a
function partial derivative.
Expand Down

0 comments on commit 633b9d8

Please sign in to comment.