lua-users home
lua-l archive

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


Is it possible to populate and return Lua tables from C# methods in LuaInterface?

It's cool that you can return actual C# objects and access their methods/properties in a Lua script, but it doesn't allow for idiomatic Lua. For instance, if I return a list of Foo to the Lua script, I want it to be in a table rather than List so the script can use "for k,v in pairs(foos)", "a,b=unpack(foos)", etc. rather than for "i=0,foos.Count-1".