lua-users home
lua-l archive

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

On Oct 15, 2011, at 11:54 PM, Sebastien Lai wrote:

> Though that will only work if the modules in question declare global
> variables,

In 5.1, modules are registered in package.loaded. Their incidental existence in _G, while unfortunate, is inconsequential.

> but not when the Module returns a table (or any other
> value, for that matter).

True, as this would interrupt the evaluation of the script. 

This is why removing module from 5.2 is a boneheaded decision in my opinion.