[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A major problem with the Lua ecosystem
- From: Andrew Gierth <andrew@...>
- Date: Fri, 02 Feb 2018 05:53:30 +0000
>>>>> "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.