My problem is that I have a function that needs to be called before its link. In other words, the code is as follows:
doStuff()
local function doStuff() end
and whenever I try to run it, it cannot reference the doStuff () function. My question is: how can I call this function without moving the function above, where is it called? Therefore, I do not want:
local function doStuff() end
doStuff()
as this will cause errors in other parts of my program.
source
share