Skip to content

Commit

Permalink
Update chapters/classes.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Apr 18, 2023
1 parent efe024c commit b5e1af6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chapters/classes.tex
Expand Up @@ -843,7 +843,15 @@ \subsection{Short Class Definitions}\label{short-class-definitions}

\subsection{Combining Base Classes and Other Elements}\label{restriction-on-combining-base-classes-and-other-elements}\label{combining-base-classes-and-other-elements}

It is not legal to combine equations, algorithms, components, non-empty base classes (see \cref{empty-class}), or protected elements with an extends from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, a \firstuse{simple type} (\lstinline!Real!, \lstinline!Boolean!, \lstinline!Integer!, \lstinline!String! and enumeration types), or any class transitively extending from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, or a simple type.
It is not legal to combine equations, algorithms, components, non-empty base classes (see below), or protected elements with an extends from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, a \firstuse{simple type} (\lstinline!Real!, \lstinline!Boolean!, \lstinline!Integer!, \lstinline!String! and enumeration types), or any class transitively extending from an array class, a class with non-empty \lstinline[language=grammar]!base-prefix!, or a simple type.

\begin{definition}[Empty class]\index{empty-class}
A class without equations, algorithms, or components, and where any base-classes are themselves empty.
\end{definition}

\begin{nonnormative}
An empty class may contain annotations, such as graphics, and can be used more freely as base-class than other classes.
\end{nonnormative}

\begin{example}
\begin{lstlisting}[language=modelica]
Expand Down

0 comments on commit b5e1af6

Please sign in to comment.