Hi, I test with your method, but I have no lucky, Can you point where am I
wrong?
I wrote the code below:
foo.lua
-----------------------------------------------------
local M = {}
local function add_internal(a, b)
return a+b
end
local function multiply_internal(a, b)
return a*b
end
function M.add(a, b)
return add_internal(a, b)
end
return M
test.lua
--------------------------------------------------------
local foo, myprivate = dofile("./foo.lua")
myprivate.add_internal(1, 2)
But I have no lucky, myprivate is nil.