lua - Requiring a module inside a required module -


i programming game in lua based corona requires require module inside of module. getting looping error. reason doing way because need use function have defined in main.lua in module required in main.lua. solve problem, decided hold game state in separate module called gamestate.lua. then, circular requirement error. there way around in corona sdk?

i need use function have defined in main.lua in module required in main.lua.

move function out third module , require in other two.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -