lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> 于2020年5月27日周三 下午7:16写道:
>
> We are close to freezing Lua 5.4.0. This is the time to report
> glitches and bugs.
>
Is there some news for the mismatched closed variable issue found by
Gé Weijers <ge@weijers.org>?

the minimal test case (from Joseph C Sible <josephcsible@gmail.com>):
local var1 <const> = nil
local var2 <const> = nil
do
    local var3 <close> = setmetatable({}, {__close = function() end})
end
local var4 = true

returns:
lua: noname/2020-05-27-1.lua:6: attempt to close non-closable variable 'var4'
stack traceback:
noname/2020-05-27-1.lua:6: in main chunk
[C]: in ?



-- 
regards,
Xavier Wang.