[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: modules, require, magic
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 19 Oct 2011 14:44:04 -0200
> > 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
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, David Manura
- Re: modules, require, magic, Hisham
- Re: modules, require, magic, Roberto Ierusalimschy
- Re: modules, require, magic, Fabio Mascarenhas