lua-users home
lua-l archive

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


HyperHacker wrote:
Two modules in one file would be a simple matter of:
local M, N = {}, {}
...
return M, N
...
myModule, myOtherModule = require('moduleM')

require() does not return multiple values.

--
Shmuel