Skip to content

Commit

Permalink
Left-over from Modelica 1.1; clarify built-in good option.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Aug 10, 2023
1 parent 91a64b5 commit 9b29bee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,7 @@ \subsection{Automatic Vectorization}\label{scalar-functions-applied-to-array-arg
end Add;
\end{lstlisting}
\lstinline!Add(1, [1,2,3])! adds one to each of the elements of the second
argument giving the result \lstinline![2,3,4]!. However, it is illegal to
write \lstinline!1 + [1,2,3]!, because the rules for the built-in
argument giving the result \lstinline![2,3,4]!. For built-in operators one can do this with \lstinline!1 .+ [1,2,3]! but not with \lstinline!1 + [1,2,3]!, because the rules for the built-in
operators are more restrictive.
\end{example}

Expand Down

0 comments on commit 9b29bee

Please sign in to comment.