Skip to content

Commit

Permalink
Dropping 'encapsulated' from glossary in favor of indexed keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 10, 2020
1 parent 3806c14 commit ca46af3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions 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
Expand Down
1 change: 1 addition & 0 deletions chapters/scoping.tex
Expand Up @@ -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.

Expand Down

0 comments on commit ca46af3

Please sign in to comment.