lua-users home
lua-l archive

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

On Sun, Feb 28, 2016 at 11:53 AM, Nagaev Boris <> wrote:
> local conman = require "org.conman"
> conman.process.fork(...)
> etc
> Just one local variable.

Someone is going to say "but then you have to pull all the libraries
in!". Not necessarily. With a little bit of metamethod magic on
conman, can load submodules only when accessed.

> The global namespace was created to be polluted and the locals were
> created to keep things clear.

Well said. Putting stuff in globals is not necessarily evil; we let
stock Lua do that ;)

steve d