Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3255c8

Browse files
committed
Reword explanation of global statement since an undeclared global is a
free variable and is subject to those rules.
1 parent f0c1f1b commit f3255c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/ref/ref6.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,9 @@ \section{The \keyword{global} statement \label{global}}
719719
720720
The \keyword{global} statement is a declaration which holds for the
721721
entire current code block. It means that the listed identifiers are to be
722-
interpreted as globals. While \emph{using} global names is automatic
723-
if they are not defined in the local scope, \emph{assigning} to global
724-
names would be impossible without \keyword{global}.
722+
interpreted as globals. It would be impossible to assign to a global
723+
variable without \keyword{global}, although free variables may refer
724+
to globals without being declared global.
725725
\indexiii{global}{name}{binding}
726726
727727
Names listed in a \keyword{global} statement must not be used in the same

0 commit comments

Comments
 (0)