Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down