diff --git a/chapters/glossary.tex b/chapters/glossary.tex index e77c93db4..2c8db6550 100644 --- a/chapters/glossary.tex +++ b/chapters/glossary.tex @@ -1,9 +1,5 @@ \chapter{Glossary}\label{glossary} -\glossaryitem{encapsulated}: a class that does not depend on where it is -placed in the package-hierarchy, since its lookup is stopped at the -encapsulated boundary. (See \cref{simple-name-lookup}). - \glossaryitem{equation}: part of a class definition. A scalar equation relates scalar variables, i.e.\ constrains the values that these variables can take simultaneously. When n-1 variables of an equation containing n diff --git a/chapters/scoping.tex b/chapters/scoping.tex index 0c7226ed2..c70c9c5c1 100644 --- a/chapters/scoping.tex +++ b/chapters/scoping.tex @@ -61,6 +61,7 @@ \section{Static Name Lookup}\label{static-name-lookup} \subsection{Simple Name Lookup}\label{simple-name-lookup} +% Not adding 'encapsulated' as normal word to index; the keyword variant seems sufficient A class declared with the keyword \lstinline!encapsulated!\indexinline{encapsulated} (see \lstinline[language=grammar]!class-definition! in the grammar) is called an \firstuse{encapsulated} class. By restricting name lookup inside a restricted class in ways defined in this chapter, the meaning of the class is made independent of where it is placed in a package hierarchy.