Skip to content

Commit

Permalink
Constrain array assignments with implicit iterators.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Dec 12, 2022
1 parent 87ad62c commit 1521e30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapters/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ \subsubsection{Implicit Iteration Ranges}\label{implicit-iteration-ranges}
\end{lstlisting}
\end{example}

The size of an array -- the iteration range -- is evaluated on entry to the \lstinline!for!-loop and the array size shall not change during the execution of the \lstinline!for!-loop.
There may not be assignment to the entire array inside the loop, but there may be assignment to individual elements or ranges of elements.
The size of an array -- the iteration range -- is evaluated on entry to the \lstinline!for!-loop and the array size will thus not change during the execution of the \lstinline!for!-loop.

\subsubsection{Types as Iteration Ranges}\label{types-as-iteration-ranges}

Expand Down

0 comments on commit 1521e30

Please sign in to comment.