Skip to content

Commit 5e9ae61

Browse files
committed
[basic.pre,basic.lookup.general] Cleanup definition of term 'name lookup'
1 parent 861071a commit 5e9ae61

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

source/basic.tex

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@
103103
or the \tcode{*\keyword{this}} object\iref{expr.prim.this}.
104104

105105
\pnum
106-
Some names denote types or templates. In general,
107-
whenever a name is encountered it is necessary to determine whether that name denotes
108-
one of these entities before continuing to parse the program that contains it. The
109-
process that determines this is called
110-
\defnx{name lookup}{lookup!name}\iref{basic.lookup}.
106+
\begin{note}
107+
Some names denote types or templates.
108+
In general, whenever a name is encountered
109+
it is necessary to look it up\iref{basic.lookup}
110+
to determine whether that name denotes one of these entities
111+
before continuing to parse the program that contains it.
112+
\end{note}
111113

112114
\pnum
113115
Two names are \defnx{the same}{name!same} if
@@ -1483,13 +1485,13 @@
14831485
\indextext{scope!name lookup and|see{lookup, name}}%
14841486

14851487
\pnum
1488+
\defnx{Name lookup}{lookup!name} associates the use of a name
1489+
with a set of declarations\iref{basic.def} of that name.
14861490
The name lookup rules apply uniformly to all names (including
14871491
\grammarterm{typedef-name}{s}\iref{dcl.typedef},
14881492
\grammarterm{namespace-name}{s}\iref{basic.namespace}, and
14891493
\grammarterm{class-name}{s}\iref{class.name}) wherever the grammar allows
1490-
such names in the context discussed by a particular rule. Name lookup
1491-
associates the use of a name with a set of declarations\iref{basic.def} of
1492-
that name.
1494+
such names in the context discussed by a particular rule.
14931495
Unless otherwise specified,
14941496
the program is ill-formed if no declarations are found.
14951497
If the declarations found by name lookup

0 commit comments

Comments
 (0)