lua-users home
lua-l archive

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


On 2/22/06, Gavin Kistner <gavin@refinery.com> wrote:
  I have no idea about how the internals of Lua work. Could someone
who does provide a really rough idea of how hard it would be to
extend the vararg syntax to work with:
      local a, b, ... = func(  )

Does:
local results = { func() }

not do what you want?  From there you can pick through results and grab "a" / results[1], "b" / results[2], ... and the rest

--
// Chris