lua-users home
lua-l archive

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


I am using Lua 5.1.3.  It is my understanding from the
docs and Google that all Lua variables by default are
global but it does not seem this way.

I have a common package that I wish to initialize some
global variables.

If call the module from a parent script (via require
"myscript.lua") then print the value of the the
variables from the parent script they are nil.

If I try to set them from a function in the "required"
module they are still nil.

What can you suggest?