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.
This commit is contained in:
@@ -1509,7 +1509,7 @@ A local variable can be declared as a @def{to-be-closed} variable,
|
||||
with the following syntax:
|
||||
@Produc{
|
||||
@producname{stat}@producbody{
|
||||
@Rw{local} @bnfter{*} @bnfter{toclose} Name @bnfter{=} exp
|
||||
@Rw{local} @bnfter{<} @bnfter{toclose} @bnfter{>} Name @bnfter{=} exp
|
||||
}}
|
||||
A to-be-closed variable behaves like a normal local variable,
|
||||
except that its value is @emph{closed} whenever the variable
|
||||
@@ -8949,7 +8949,7 @@ and @bnfNter{LiteralString}, see @See{lexical}.)
|
||||
@OrNL @Rw{function} funcname funcbody
|
||||
@OrNL @Rw{local} @Rw{function} @bnfNter{Name} funcbody
|
||||
@OrNL @Rw{local} namelist @bnfopt{@bnfter{=} explist}
|
||||
@OrNL @Rw{local} @bnfter{*} @bnfter{toclose} Name @bnfter{=} exp
|
||||
@OrNL @Rw{local} @bnfter{<} @bnfter{toclose} @bnfter{>} Name @bnfter{=} exp
|
||||
}
|
||||
|
||||
@producname{retstat}@producbody{@Rw{return}
|
||||
|
||||
Reference in New Issue
Block a user