Skip to content

Commit

Permalink
Say "Unsafe, " as proposed by Hans
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
  • Loading branch information
henrikt-ma and HansOlsson committed Sep 28, 2022
1 parent 9b24987 commit e0cbaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ \section{Evaluation Order}\label{evaluation-order}
Boolean b;
Integer I;
equation
b = (I >= 1 and I <= n) and v[I]; // May result in error
b = (I >= 1 and I <= n) and v[I]; // Unsafe, may result in error
b = if (I >= 1 and I <= n) then v[I] else false; // Safe
\end{lstlisting}

Expand Down

0 comments on commit e0cbaf7

Please sign in to comment.