|
François-Xavier INGLESE wrote:
seems that you trying to emulate C "#include", right? so there's no reason to use "module" here (require will work just fine without it).... in "main.lua". Also, in "a.lua", I tried to add : module(..., package.seeall);
note that if you'll write `module "a"', you should write "fully qualified identifiers" (i.e. not "MyFunc()", but "a.MyFunc()"). try to remove module declaration -- this may help.
also you should write `dofile("a.lua")' ("require" will add an extension if necessary, but "dofile" will not, afair).