[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: modules, require, magic
- From: joao lobato <btnfdp.lobato@...>
- Date: Mon, 17 Oct 2011 23:59:07 +0100
On 10/17/11, Josh Simmons <simmons.44@gmail.com> wrote:
> module...
> Localise external functions so they remain accessible after the call
> to module or use seeall to make _G the __index of the new
> environment's metatable, call module creating a global table, making
> it the environment of the current block so following global sets and
> gets happen to the module table not the global environment.
>
> not module...
> return a table with exports.
>
> I just don't understand _why_ you want the functional equivalent of
> module 'foo' when all you ever need is trivial and much more obvious
> without it.
>
>
Indeed. The Table(tm) helps here as well :-)
Actually, what I don't understand is dofile; I always find it wierd
that it can't be passed arguments...
- 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, Hisham
- Re: modules, require, magic, Luiz Henrique de Figueiredo
- Re: modules, require, magic, Pierre Chapuis
- Re: modules, require, magic, Josh Simmons