lua - late call of class destructor
snippet in lua

lua - late call of class destructor

user2446

local function test()
    local c = C()
end

function main()
    for i=1,2 do
        log(i)
        test()
        collectgarbage "collect"
    end
end