diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-30 12:18:19 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-30 12:18:19 -0300 |
| commit | 0d529138042563baf260366e19a7aa2c60a07174 (patch) | |
| tree | ea8699a57a9b26e620a2ed6bc2a11c9e49dee780 /testes/api.lua | |
| parent | b80077b8f3e27a94c6afa895b41a9f8b52c42e61 (diff) | |
| download | lua-github-0d529138042563baf260366e19a7aa2c60a07174.tar.gz | |
Change in the syntax of attributes
Attributes changed to posfixed ('x <const>', instead of '<const> x'),
and "toclose" renamed to "close". Posfixed attributes seem to make it
clearer that it applies to only one variable when there are multiple
variables.
Diffstat (limited to 'testes/api.lua')
| -rw-r--r-- | testes/api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/api.lua b/testes/api.lua index 0966ed19..3f7f7596 100644 --- a/testes/api.lua +++ b/testes/api.lua @@ -1203,7 +1203,7 @@ end) testamem("to-be-closed variables", function() local flag do - local <toclose> x = + local x <close> = setmetatable({}, {__close = function () flag = true end}) flag = false local x = {} |
