Skip to content

Commit cc2561a

Browse files
Clarify array of records (#3715)
* Clarify * Update chapters/functions.tex Co-authored-by: Henrik Tidefelt <[email protected]>
1 parent 1fc5dd3 commit cc2561a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chapters/functions.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,10 +2057,11 @@ \subsubsection{Records}\label{records}
20572057
\item
20582058
The components of the Modelica record class are declared in the same order in the C struct.
20592059
\item
2060-
Arrays cannot be mapped.
2060+
Records containing arrays cannot be mapped.
20612061
\end{itemize}
20622062

2063-
Records are passed by reference (i.e., a pointer to the record is being passed).
2063+
Scalar records are passed by reference (i.e., a pointer to the record is being passed).
2064+
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).
20642065

20652066
\begin{example}
20662067
\begin{lstlisting}[language=modelica]

0 commit comments

Comments
 (0)