|
|
||
|
-- Define a module with functions foo and baz:
local M = { }
function M.foo()
--
end
function M.baz()
--
end
return M
This hardly seems particularly bizarre and it doesn't rely on tricks with environment to change global assignments into exported values.
Mark