lua-users home
lua-l archive

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


> > If you really want 'module', wouldn't be simpler to use
> >
> > _ENV = module(...)
> >
> > with a simplified version of 'module'?
> 
> I assume you would also need to "return _ENV" in the end of the module
> for this to work, [...]

I do not think so. 'module' might use the same trick (technique?) it
currently uses, regarding the 'loaded' table.

-- Roberto