lua-users home
lua-l archive

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


I believe there is a table class that you can instantiate and populate
in C#, then return to Lua.

On Thu, Aug 12, 2010 at 7:30 AM, Eric Tetz <erictetz@gmail.com> wrote:
> 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".