Thread: Include files
View Single Post
09-21-18, 11:50 AM   #7
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
The () after the function name was a typo here, not in the code.

I do not re-initialise the namespace, only the namespace["something"].

There is an issue with

file1:
local n, ns = ...
ns["a"] = { };

file2:
local n, ns = ...
ns["a"]["b"] = some_local_function;

file3:
local n, ns = ...
ns["a"]["b"](params); -- error, it is nil
  Reply With Quote