Skip to content

Commit

Permalink
Fix formatting related to lookup of non-operator function
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Aug 26, 2021
1 parent df4137f commit ca58d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/scoping.tex
Expand Up @@ -91,8 +91,8 @@ \subsection{Composite Name Lookup}\label{composite-name-lookup}
\item
If the first identifier denotes a component, the rest of the name (e.g., \lstinline!B! or \lstinline!B.C!) is looked up among the declared named component elements of the component.
\item
If not found, and if the first identifier denotes a scalar component, or component[j] where component is an array of components and the indices j can be evaluated at translation time and component[j] is a scalar; and if the composite name is used as a function call, the lookup is also performed among the declared named class elements of the scalar component, and must find a non-operator function.
All identifiers of the rest of the name (e.g., B and B.C) must be classes.
If not found, and if the first identifier denotes a scalar component, or \lstinline!component[j]! where component is an array of components and the indices \lstinline!j! can be evaluated at translation time and \lstinline!component[j]! is a scalar; and if the composite name is used as a function call, the lookup is also performed among the declared named class elements of the scalar component, and must find a non-operator function.
All identifiers of the rest of the name (e.g., \lstinline!B! and \lstinline!B.C!) must be classes.
\item
If the identifier denotes a class, that class is temporarily flattened (as if instantiating a component without modifiers of this class, see \cref{modification-environment}) and using the enclosing classes of the denoted class.
The rest of the name (e.g., \lstinline!B! or \lstinline!B.C!) is looked up among the declared named elements of the temporary flattened class.
Expand Down

0 comments on commit ca58d09

Please sign in to comment.