Skip to content

Commit

Permalink
Add array dimensions as first example of evaluable expression
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 15, 2023
1 parent 5cee6a1 commit 8aa912d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapters/classes.tex
Expand Up @@ -177,7 +177,8 @@ \subsection{Static Semantics}\label{component-declaration-static-semantics}
\end{itemize}
in that order.

Array dimensions shall be scalar non-negative parameter expressions of type \lstinline!Integer!, a reference to a type (which must an enumeration type or \lstinline!Boolean!, see \cref{enumeration-types}), or the colon operator denoting that the array dimension is left unspecified (see \cref{array-declarations}). All variants can also be part of short class definitions.
Array dimensions shall be scalar non-negative evaluable expressions of type \lstinline!Integer!, a reference to a type (which must an enumeration type or \lstinline!Boolean!, see \cref{enumeration-types}), or the colon operator denoting that the array dimension is left unspecified (see \cref{array-declarations}).
All variants can also be part of short class definitions.

\begin{example}
Variables with array dimensions:
Expand Down

0 comments on commit 8aa912d

Please sign in to comment.