lua-users home
lua-l archive

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


> The trouble I have is the fact that the module function adds the module 
> name to the global table.

How about redefining 'module'? Something like this (untested):

do
	local _module=module
	module=function(name,...)
		local v=_G[name]
		_module(name,...)
		_G[name]=v
	end
end

--lhf