|
103 | 103 | or the \tcode{*\keyword{this}} object\iref{expr.prim.this}. |
104 | 104 |
|
105 | 105 | \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} |
111 | 113 |
|
112 | 114 | \pnum |
113 | 115 | Two names are \defnx{the same}{name!same} if |
|
1483 | 1485 | \indextext{scope!name lookup and|see{lookup, name}}% |
1484 | 1486 |
|
1485 | 1487 | \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. |
1486 | 1490 | The name lookup rules apply uniformly to all names (including |
1487 | 1491 | \grammarterm{typedef-name}{s}\iref{dcl.typedef}, |
1488 | 1492 | \grammarterm{namespace-name}{s}\iref{basic.namespace}, and |
1489 | 1493 | \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. |
1493 | 1495 | Unless otherwise specified, |
1494 | 1496 | the program is ill-formed if no declarations are found. |
1495 | 1497 | If the declarations found by name lookup |
|
0 commit comments