We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f1ed88 + e0cbaf7 commit 0553160Copy full SHA for 0553160
chapters/operatorsandexpressions.tex
@@ -179,8 +179,8 @@ \section{Evaluation Order}\label{evaluation-order}
179
Boolean b;
180
Integer I;
181
equation
182
- b = (I >= 1 and I <= n) and v[I]; // Invalid
183
- b = if (I >= 1 and I <= n) then v[I] else false; // Correct
+ 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
184
\end{lstlisting}
185
186
To guard square against square root of negative number use \lstinline!noEvent!:
0 commit comments