Skip to content

Commit

Permalink
Updating component declarations to allow indexing with types.
Browse files Browse the repository at this point in the history
Note that the text was slightly changed to group "an enumeration type and Boolean" together so that they both can refer to the same section.
Part of #2221
  • Loading branch information
HansOlsson committed Jul 5, 2019
1 parent 4c5760a commit 1dfa8b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ \subsection{Component Declaration Static Semantics}\doublelabel{component-declar
\end{itemize}
in that order.

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

\begin{nonnormative}
Example of variables with array dimensions.
Expand Down

0 comments on commit 1dfa8b0

Please sign in to comment.