There is some really weird behavior going on. I am making only one function call at the very bottom of my file called main(). Above that I make a myriad of function and local variable declarations intertwined. So it like
local a
local b
function d() *some code* end
function e() *some code* end
local f
local g
function h() *some code* end
function main() d() e() h() end
main()
The weird thing is that different behavior occurs based on this ordering above main. So the above performs differently if b is declared below d instead of above it. Why is this? and how can I avoid this?