lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

François-Xavier INGLESE wrote:
... in "main.lua". Also, in "a.lua", I tried to add :
  module(..., package.seeall);
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).

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).