We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc5dd3 commit cc2561aCopy full SHA for cc2561a
chapters/functions.tex
@@ -2057,10 +2057,11 @@ \subsubsection{Records}\label{records}
2057
\item
2058
The components of the Modelica record class are declared in the same order in the C struct.
2059
2060
- Arrays cannot be mapped.
+ Records containing arrays cannot be mapped.
2061
\end{itemize}
2062
2063
-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).
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).
2065
2066
\begin{example}
2067
\begin{lstlisting}[language=modelica]
0 commit comments