I am making excellent progress in learning/developing in LUA thanks to all of the examples here..awesome.. but suddenly I got stuck on what I think is probably a simple solution, but an hour later, I am still stuck.
Here is a simplified idea of my problem:
local function A()
-- calls function b
B()
end
local function B()
--calls function a
A()
end
my problem is that above doesn't work... in function A(), I can't call function B() unless I define function B ABOVE or PRIOR to it being called, but then if I do that and declare B above A, then B can't call A ...circular...
I have never encountered this in "higher" languages, I'm sure there must be some work-around Lua ... any ideas?? Help !
THanks,