diff --git a/chapters/functions.tex b/chapters/functions.tex index 529c02a76..ef7e114de 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -2057,10 +2057,11 @@ \subsubsection{Records}\label{records} \item The components of the Modelica record class are declared in the same order in the C struct. \item - Arrays cannot be mapped. + Records containing arrays cannot be mapped. \end{itemize} -Records are passed by reference (i.e., a pointer to the record is being passed). +Scalar records are passed by reference (i.e., a pointer to the record is being passed). +As stated in \cref{arrays-1}, an array of records is passed as a pointer to the first element in an array of structs (array-to-pointer decay in C). \begin{example} \begin{lstlisting}[language=modelica]