I want to do something like this:
table1 = myFunc("Arg1")
table2 = myFunc("Arg2")
for key,value in pairs(table1) do print(key,value) end
for key,value in pairs(table2) do print(key,value) end
I'm able to add a table to the global scope of Lua
using syntax similar to this:
pLuaVM.NewTable("test");
((LuaTable)pLuaVM["test"])["A"] = 1;
((LuaTable)pLuaVM["test"])["B"] = 2;
and then access that table in Lua doing
for key,value in pairs(test) do print(key,value) end
But I'd rather have my method return the table to a local variable that I can then work with.
Is this possible / am I going in the right direction here?