Skip to content

Commit

Permalink
Clarify how to deduce array size (from binding equation and attributes).
Browse files Browse the repository at this point in the history
Closes #2212
  • Loading branch information
HansOlsson committed Jul 5, 2019
1 parent 953bfa8 commit 4c5760a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chapters/arrays.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ \section{Array Declarations}\doublelabel{array-declarations}
built-in type classes Real, Integer, Boolean, String, and enumeration
types. The type of a dimension upper bound expression, e.g. n, m, p,...
in the table below, need to be a subtype of Integer or EB for a class EB
that is an enumeration type or subtype of the Boolean type. Colon (:)
that is an enumeration type or subtype of the Boolean type.

Colon (:)
indicates that the dimension upper bound is unknown and is a subtype of
Integer.
Integer. The size of such a variable can be determined from its binding equation, or the size
of any of its array attributes - see also \autoref{flexible-array-sizes-and-resizing-of-arrays-in-functions}.
The size cannot be determined from other equations or algorithm.

Upper and lower array dimension index bounds are described in \autoref{array-dimension-lower-and-upper-index-bounds}.

Expand Down

0 comments on commit 4c5760a

Please sign in to comment.