lua-users home
lua-l archive

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


On Oct 16, 2011, at 8:05 PM, Matthew Wild wrote:

> ... Error: attempt to call global 'module' (a nil value).

Come on, you know better than that :)

> module() is too magic in my opinion.

Again, we had this discussion over one year ago and I think we agreed to disagree on that one [1].

Creating a closed, self-contained environment is a feature of module. That you dislike its specific implementation (setfenv), is a matter of taste, not functionality.

[1] http://lua-users.org/lists/lua-l/2010-08/msg00314.html