summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-09 12:10:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-05-09 12:10:31 -0300
commitd881325c2fcbb6d2c434ec403b0bbe51ac200c7b (patch)
tree811c1a1ffa8f91693b8df64e040c509c2cec6ded /manual
parent3f253f116e8e292977a1bded964544fb35b3d1e3 (diff)
downloadlua-d881325c2fcbb6d2c434ec403b0bbe51ac200c7b.tar.gz
lua-d881325c2fcbb6d2c434ec403b0bbe51ac200c7b.tar.bz2
lua-d881325c2fcbb6d2c434ec403b0bbe51ac200c7b.zip
Flag for to-be-closed variables changed to '<toclose>'
The flag for to-be-closed variables was changed from '*toclose' to '<toclose>'. Several people found confusing the old syntax and the new one has a clear terminator, making it more flexible for future changes.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of
index cf44b4f2..54a07879 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -1509,7 +1509,7 @@ A local variable can be declared as a @def{to-be-closed} variable,
1509with the following syntax: 1509with the following syntax:
1510@Produc{ 1510@Produc{
1511@producname{stat}@producbody{ 1511@producname{stat}@producbody{
1512 @Rw{local} @bnfter{*} @bnfter{toclose} Name @bnfter{=} exp 1512 @Rw{local} @bnfter{<} @bnfter{toclose} @bnfter{>} Name @bnfter{=} exp
1513}} 1513}}
1514A to-be-closed variable behaves like a normal local variable, 1514A to-be-closed variable behaves like a normal local variable,
1515except that its value is @emph{closed} whenever the variable 1515except that its value is @emph{closed} whenever the variable
@@ -8949,7 +8949,7 @@ and @bnfNter{LiteralString}, see @See{lexical}.)
8949@OrNL @Rw{function} funcname funcbody 8949@OrNL @Rw{function} funcname funcbody
8950@OrNL @Rw{local} @Rw{function} @bnfNter{Name} funcbody 8950@OrNL @Rw{local} @Rw{function} @bnfNter{Name} funcbody
8951@OrNL @Rw{local} namelist @bnfopt{@bnfter{=} explist} 8951@OrNL @Rw{local} namelist @bnfopt{@bnfter{=} explist}
8952@OrNL @Rw{local} @bnfter{*} @bnfter{toclose} Name @bnfter{=} exp 8952@OrNL @Rw{local} @bnfter{<} @bnfter{toclose} @bnfter{>} Name @bnfter{=} exp
8953} 8953}
8954 8954
8955@producname{retstat}@producbody{@Rw{return} 8955@producname{retstat}@producbody{@Rw{return}