|
Aaron Brown skrev:
Javier wrote:while next (t) do t[next(t)]=nil endThis doesn't work if false is a key.
Easily fixed by checking specifically for non nil keys: while next(t) ~= nil do t[next(t)] = nil endHowever, another way to go about the "my submodules may have references..." is to use weak references (but then they'll have to check that their reference is still valid before using them).
//Andreas