lua-users home
lua-l archive

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


>>>>> "Sean" == Sean Conner <sean@conman.org> writes:

 Sean> That's really only an issue with lua 5.1, which *will always*
 Sean> create a global when loading a module.

That does not appear to be the case:

> require 'mod'
mod loaded
> print(mod)
nil
> (require 'mod').foo()
foo called

It looks like using module() will cause a global value to be created,
but this does not appear to be necessary.

-- 
Andrew.