Skip to content

Commit

Permalink
Fix remaining cases of 'restricted class' -> 'specialized class'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 1, 2020
1 parent 9e7b3ab commit cada2d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
3 changes: 2 additions & 1 deletion chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ \subsubsection{Declaration Equations}\label{declaration-equations}
component. For declarations of vectors and matrices, declaration
equations are associated with each element.

Only components of the restricted classes \lstinline!type!, \lstinline!record!, \lstinline!operator record!, and \lstinline!connector!, or components of classes inheriting from \lstinline!ExternalObject! may have declaration equations. See also the corresponding rule for algorithms, \cref{restrictions-on-assigned-variables}.
Only components of the specialized classes \lstinline!type!, \lstinline!record!, \lstinline!operator record!, and \lstinline!connector!, or components of classes inheriting from \lstinline!ExternalObject! may have declaration equations.
See also the corresponding rule for algorithms, \cref{restrictions-on-assigned-variables}.

\subsubsection{Prefix Rules}\label{prefix-rules}

Expand Down
6 changes: 1 addition & 5 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ \section{Function as a Specialized Class}\label{function-as-a-specialized-class}
external function interface} (not both), which, if present, is the
body of the function.
\item
A function may only contain components of the restricted classes
\lstinline!type!, \lstinline!record!, \lstinline!operator record!, and \lstinline!function!;
and it must not contain e.g.
\lstinline!model!, \lstinline!block!, \lstinline!operator! or \lstinline!connector!
components.
A function may only contain components of the specialized classes \lstinline!type!, \lstinline!record!, \lstinline!operator record!, and \lstinline!function!; and it must not contain, e.g., \lstinline!model!, \lstinline!block!, \lstinline!operator! or \lstinline!connector! components.
\item
The elements of a function shall not have prefixes \lstinline!inner!, or \lstinline!outer!.
\item
Expand Down
9 changes: 3 additions & 6 deletions chapters/overloaded.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ \chapter{Overloaded Operators}\label{overloaded-operators}
Overloaded array operations are automatically deduced from the overloaded scalar operations.

\section{Overview of overloaded operators}\label{overview-of-overloaded-operators}
In an \lstinline!operator record! the definition of operations are done using the specialized class \lstinline!operator!
(a restricted class similar to \lstinline!package!, see \cref{specialized-classes})
followed by the name of the operation. Each \lstinline!operator! class is
comprised of functions
implementing different variants of the operation for the \lstinline!operator record! class in
which the definition resides.

In an \lstinline!operator record! the definition of operations are done using the specialized class \lstinline!operator! (a specialized class similar to \lstinline!package!, see \cref{specialized-classes}) followed by the name of the operation.
Each \lstinline!operator! class is comprised of functions implementing different variants of the operation for the \lstinline!operator record! class in which the definition resides.
% This was something weird that could be seen as a table originally,
% that is somewhat awkward - but keeping it.
%
Expand Down
3 changes: 2 additions & 1 deletion chapters/statements.tex
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ \subsubsection{Assignments from Called Functions with Multiple Results}\label{as
\end{nonnormative}

\subsubsection{Restrictions on assigned variables}\label{restrictions-on-assigned-variables}
Only components of the restricted classes \lstinline!type!, \lstinline!record!, \lstinline!operator record!, and \lstinline!connector! may appear as left-hand-side in algorithms.

Only components of the specialized classes \lstinline!type!, \lstinline!record!, \lstinline!operator record!, and \lstinline!connector! may appear as left-hand-side in algorithms.
This applies both to simple assignment statements, and the parenthesized, comma-separated list of variables for functions with multiple results.

\subsection{For-statement}\label{for-statement}
Expand Down

0 comments on commit cada2d9

Please sign in to comment.