lua-users home
lua-l archive

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


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