Writing Lua Modules

Introduction With Lua 5.2 the recommended way to write modules changed. Instead of using module("mymodule", package.seeall) the recommendation now is to create a local table, put all of the module's functions in it and return the table. The big difference is a local table does not register the module in the global namespace. Personally, I … Continue reading Writing Lua Modules