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.
This commit is contained in:
@@ -320,11 +320,11 @@ NoRun("", "lua %s", prog) -- no message
|
||||
|
||||
-- to-be-closed variables in main chunk
|
||||
prepfile[[
|
||||
local <toclose> x = function (err)
|
||||
local x <close> = function (err)
|
||||
assert(err == 120)
|
||||
print("Ok")
|
||||
end
|
||||
local <toclose> e1 = function () error(120) end
|
||||
local e1 <close> = function () error(120) end
|
||||
os.exit(true, true)
|
||||
]]
|
||||
RUN('lua %s > %s', prog, out)
|
||||
|
||||
Reference in New Issue
Block a user