Skip to content

Commit

Permalink
Merge pull request #2605 from HansOlsson/NdimsConstant
Browse files Browse the repository at this point in the history
Make ndims constant.
  • Loading branch information
HansOlsson committed Jun 26, 2020
2 parents bd9c702 + 5e124f0 commit ddb4483
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,12 @@ \subsection{Constant Expressions}\doublelabel{constant-expressions}
\lstinline!edge!, \lstinline!change!, \lstinline!sample!, and \lstinline!pre!, a function or operator with constant
subexpressions as argument (and no parameters defined in the function)
is a constant expression.
\item
Some function calls are constant expressions regardless of the arguments:
\begin{itemize}
\item
\lstinline!ndims(A)!
\end{itemize}
\end{itemize}

Components declared as constant shall have an associated declaration
Expand Down Expand Up @@ -1321,8 +1327,6 @@ \subsection{Parameter Expressions}\doublelabel{parameter-expressions}
are not:

\begin{itemize}
\item
\lstinline!ndims(A)!
\item
\lstinline!cardinality(c)!, see restrictions for use in \autoref{cardinality-deprecated}.
\item
Expand Down

0 comments on commit ddb4483

Please sign in to comment.