title: When one should use local and global functions and variables in corona sdk?
body: <p>If there are more than one file(main.lua) which contains code and I declare some variables and functions global. Are these variables and functions global in all files or can I access them through any file? And also is there any problem if I use only global variables and functions? I am using director class </p>