Main.lua:
ourModule = require ("ourModule");
ourModule.lua
module(..., package.seeall);
print(mainVariable);
Problem: the variable set in main.lua is not printed in the module
I'm really struggling with Modules - do people generally use them? How on earth do you work with scope between them?
Thanks
Tom