Skip to content

Commit

Permalink
Allow finding 'short class definition' in the document index
Browse files Browse the repository at this point in the history
In order to make the index entry point to a good location, I needed to rephrase the paragraph slightly.  I'd say breaking the sentence in two, like this, was good for readability anyway.
  • Loading branch information
henrikt-ma committed Nov 6, 2023
1 parent 5390817 commit 549d905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -747,11 +747,11 @@ \section{Class Declarations}\label{class-declarations}

\subsection{Short Class Definitions}\label{short-class-definitions}

A class definition of the form
A \firstuse{short class definition} is a class definition in the form
\begin{lstlisting}[language=modelica]
class IDENT1 = type-specifier class-modification;
\end{lstlisting}
is identical, except that \lstinline!type-specifier! (the base-class) may be replaceable and for the lexical scope of modifiers, where the short class definition does not introduce an additional lexical scope for modifiers, to the longer form
Except that \lstinline!type-specifier! (the base-class) may be replaceable, and that the short class definition does not introduce an additional lexical scope for modifiers, it is identical to the longer form
\begin{lstlisting}[language=modelica]
class IDENT1
extends type-specifier class-modification;
Expand Down

0 comments on commit 549d905

Please sign in to comment.