If I require
three included files in my Lua script, can any function in any one of those files then see (and most importantly, call) any of the other functions ?
I'm running into the problem of functions calling functions which call other functions. I tried to put the various functions in other files, and then include
them instead of writing them into the main file.
I think it's working, my tests are convincing if not conclusive.
My mainline code does this...
require "SOME_REQUIRED_FILE_01"
require "SOME_REQUIRED_FILE_02"
require "SOME_REQUIRED_FILE_03"
XYZ = 0
File_02_Function_A()
I looked on The Lua Site and found THIS PAGE but I'm not totally clear on it.
Can EVERY function in all three required files see EVERY OTHER function in all three files ?