lua-users home
lua-l archive

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


> Ralph Hempel wrote:
> > Unfortunately, it's still about 11K. What am I not
> > understanding about garbage collection of unsused table
> > entries?
> 
> You have to clear registry._LOADED, too.

package.loaded... 

This function may be useful:

function unrequire(m)
	package.loaded[m] = nil
	_G[m] = nil
end

unrequire"string"
unrequire"table"
unrequire"debug"
unrequire"math"