lua-users home
lua-l archive

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


On Wed, Oct 19, 2011 at 7:34 PM, Philipp Janda <siffiejoe@gmx.net> wrote:
> I still wouldn't use the "module is environment copy" feature, because
> - sometimes I return non-tables from modules (typically functions)

In fact I have some modules that just return strings. But these should
be ok, because this copying only happens when there is no return from
a module - that is, when it's intended to be a 'classic module'

But it's true that we lose flexibility with modules being simple
copies of the environment.

steve d.