Re: Conceptual problem with module
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Conceptual problem with module
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2006年4月24日 21:22:41 -0300
> 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