Skip to content

Commit

Permalink
[basic.scope.block] Reintroduce local variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frederick-vs-ja committed Oct 16, 2024
1 parent 555f3c3 commit 7f6c286
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@
A substatement that is also a block has only one scope.
\end{note}
A variable that belongs to a block scope is a \defn{block variable}.
A block variable with automatic storage duration is a \defn{local variable}.
\begin{example}
\begin{codeblock}
int i = 42;
Expand Down

0 comments on commit 7f6c286

Please sign in to comment.