|
1934 | 1934 |
|
1935 | 1935 | \rSec2[diff.cpp17.lex]{\ref{lex}: lexical conventions} |
1936 | 1936 |
|
| 1937 | +\diffref{lex.pptoken,module.unit,module.import,cpp.pre,cpp.module,cpp.import} |
| 1938 | +\change |
| 1939 | +New identifiers with special meaning. |
| 1940 | +\rationale |
| 1941 | +Required for new features. |
| 1942 | +\effect |
| 1943 | +Logical lines beginning with |
| 1944 | +\tcode{module} or \tcode{import} may |
| 1945 | +be interpreted differently |
| 1946 | +in this International Standard. |
| 1947 | +\begin{example} |
| 1948 | +\begin{codeblock} |
| 1949 | +class module {}; |
| 1950 | +module m1; // was variable declaration; now \grammarterm{module-declaration} |
| 1951 | +module *m2; // OK |
| 1952 | + |
| 1953 | +class import {}; |
| 1954 | +import j1; // was variable declaration; now \grammarterm{import-declaration} |
| 1955 | +::import j2; // variable declaration |
| 1956 | +\end{codeblock} |
| 1957 | +\end{example} |
| 1958 | + |
1937 | 1959 | \diffref{lex.header} |
1938 | 1960 | \change |
1939 | 1961 | \grammarterm{header-name} tokens are formed in more contexts. |
|
2038 | 2060 |
|
2039 | 2061 | \rSec2[diff.cpp17.basic]{\ref{basic}: basics} |
2040 | 2062 |
|
2041 | | -\diffref{basic.link,module.unit,module.import} |
2042 | | -\change |
2043 | | -New identifiers with special meaning. |
2044 | | -\rationale |
2045 | | -Required for new features. |
2046 | | -\effect |
2047 | | -Top-level declarations beginning with |
2048 | | -\tcode{module} or \tcode{import} may |
2049 | | -be either ill-formed or interpreted differently |
2050 | | -in this International Standard. |
2051 | | -\begin{example} |
2052 | | -\begin{codeblock} |
2053 | | -class module; |
2054 | | -module *m1; // ill-formed; previously well-formed |
2055 | | -::module *m2; // OK |
2056 | | - |
2057 | | -class import {}; |
2058 | | -import j1; // was variable declaration; now \grammarterm{import-declaration} |
2059 | | -::import j2; // variable declaration |
2060 | | -\end{codeblock} |
2061 | | -\end{example} |
2062 | | - |
2063 | 2063 | \diffref{intro.races} |
2064 | 2064 | \change |
2065 | 2065 | Except for the initial release operation, |
|
0 commit comments