|
Why in weak keyed table userdata's not autocollect? --- local k = io.open("test", "w") local w = setmetatable({[k] = 1}, {__mode = "k"}) k = nil; collectgarbage() table.foreach(w, print) --- Prints: file (closed) 1 But if k is table or thread then prints nothing.