Skip to content

Commit 7f6c286

Browse files
[basic.scope.block] Reintroduce local variable
P1787R6 dropped the previous buggy uses and definition of term _local variable_. But there're many remaining use of local variable, and the intent seems to be block variable with automatic storage duration. Let's try to reintroduce _local variable_ for convenience.
1 parent 555f3c3 commit 7f6c286

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/basic.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,7 @@
12971297
A substatement that is also a block has only one scope.
12981298
\end{note}
12991299
A variable that belongs to a block scope is a \defn{block variable}.
1300+
A block variable with automatic storage duration is a \defn{local variable}.
13001301
\begin{example}
13011302
\begin{codeblock}
13021303
int i = 42;

0 commit comments

Comments
 (0)