Skip to content

Commit

Permalink
Clarify array range operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Nov 15, 2021
1 parent 569efb2 commit d4b16e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/operatorsandexpressions.tex
Expand Up @@ -105,10 +105,10 @@ \section{Operator Precedence and Associativity}\label{operator-precedence-and-as
2-$\hspace{0pt}$-2 // = 4 in Mathematica/MATLAB; is illegal in Modelica
\end{lstlisting}

Non-associative exponentiation and array range operator:
Non-associative exponentiation and array range operator (note that the array range operator only takes scalar operands):
\begin{lstlisting}[language=modelica]
x ^ y ^ z // Not legal, use parentheses to make it clear.
a : b : c : d // Not legal, and scalar arguments gives no legal interpretation.
a : b : c : d // Not legal, and parentheses cannot make it legal.
\end{lstlisting}
\end{nonnormative}

Expand Down

0 comments on commit d4b16e0

Please sign in to comment.