[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Global Variables
- From: Michael Elliott <melliott42@...>
- Date: Mon, 31 Mar 2008 04:49:16 -0700 (PDT)
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
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?