aboutsummaryrefslogtreecommitdiff
path: root/testes/main.lua
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 /testes/main.lua
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 'testes/main.lua')
-rw-r--r--testes/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/main.lua b/testes/main.lua
index aab490c8..47d84d4c 100644
--- a/testes/main.lua
+++ b/testes/main.lua
@@ -320,11 +320,11 @@ NoRun("", "lua %s", prog) -- no message
320 320
321-- to-be-closed variables in main chunk 321-- to-be-closed variables in main chunk
322prepfile[[ 322prepfile[[
323 local *toclose x = function (err) 323 local <toclose> x = function (err)
324 assert(err == 120) 324 assert(err == 120)
325 print("Ok") 325 print("Ok")
326 end 326 end
327 local *toclose e1 = function () error(120) end 327 local <toclose> e1 = function () error(120) end
328 os.exit(true, true) 328 os.exit(true, true)
329]] 329]]
330RUN('lua %s > %s', prog, out) 330RUN('lua %s > %s', prog, out)