lua-users home
lua-l archive

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


Seems like globals are traversed first, so using a global table this problem can happen in the main thread.

t = {}
t["no" .. "ref1"] = 1
t["no" .. "ref2"] = 2

for k, v in pairs(t) do
    t[k] = nil
    print(k, v)
    collectgarbage("collect")
end

Regards,
Xmilia