Skip to content

Commit e99e78d

Browse files
jensmaurertkoeppe
authored andcommitted
[basic.pre,basic.lookup.general] Cleanup definition of term 'name lookup'
1 parent f9c835b commit e99e78d

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
@@ -1519,13 +1521,13 @@
15191521
\indextext{scope!name lookup and|see{lookup, name}}%
15201522

15211523
\pnum
1524+
\defnx{Name lookup}{lookup!name} associates the use of a name
1525+
with a set of declarations\iref{basic.def} of that name.
15221526
The name lookup rules apply uniformly to all names (including
15231527
\grammarterm{typedef-name}{s}\iref{dcl.typedef},
15241528
\grammarterm{namespace-name}{s}\iref{basic.namespace}, and
15251529
\grammarterm{class-name}{s}\iref{class.name}) wherever the grammar allows
1526-
such names in the context discussed by a particular rule. Name lookup
1527-
associates the use of a name with a set of declarations\iref{basic.def} of
1528-
that name.
1530+
such names in the context discussed by a particular rule.
15291531
Unless otherwise specified,
15301532
the program is ill-formed if no declarations are found.
15311533
If the declarations found by name lookup

0 commit comments

Comments
 (0)