aboutsummaryrefslogtreecommitdiff
path: root/testes/api.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-30 12:18:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-30 12:18:19 -0300
commit0d529138042563baf260366e19a7aa2c60a07174 (patch)
treeea8699a57a9b26e620a2ed6bc2a11c9e49dee780 /testes/api.lua
parentb80077b8f3e27a94c6afa895b41a9f8b52c42e61 (diff)
downloadlua-0d529138042563baf260366e19a7aa2c60a07174.tar.gz
lua-0d529138042563baf260366e19a7aa2c60a07174.tar.bz2
lua-0d529138042563baf260366e19a7aa2c60a07174.zip
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.lua2
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)
1203testamem("to-be-closed variables", function() 1203testamem("to-be-closed variables", function()
1204 local flag 1204 local flag
1205 do 1205 do
1206 local <toclose> x = 1206 local x <close> =
1207 setmetatable({}, {__close = function () flag = true end}) 1207 setmetatable({}, {__close = function () flag = true end})
1208 flag = false 1208 flag = false
1209 local x = {} 1209 local x = {}