How can I return multiple tables/objects in Lua? I have this in file1.lua:
local A = {}
function A.new()
o = {}
return o
end
local B = {}
function B.new()
o = {}
return o
end
return A --And I want to return B
And I want to use them both in file2.lua:
local A = require "file1"
a = A.new()
b = ?