lua-users home
lua-l archive

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


On Sun, Apr 1, 2012 at 9:23 AM, Jerome Vuarand <jerome.vuarand@gmail.com> wrote:
> I still have to do the switch, but I think I'm gonna try the portable
> approach for 5.2 evolution, ie. write 5.1 and 5.2 compatible modules,
> that simply return a table, rather than using the module function.

same here.   i had _never_ willingly used package.seeall, and slowly
came to see that the rest of the module function is almost as dirty
inside, so i had already started to simply return a table on my
modules.

about more 'advanced' uses of module, in the _very_ few times i've
needed something more than the "one file, one module" schema, i had
even more reasons not to use the module function.  to be honest, i
never found myself comfortable enough with it to trust to do exactly
what i had in mind.

in the end, losing it is (for me) a step forward

-- 
Javier