lua-users home
lua-l archive

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


In article <90eb1dc70807170910y14cac214o39cb9a4e8474f9df@mail.gmail.com>,
   Javier Guerra <javier@guerrag.com> wrote:
> On Thu, Jul 17, 2008 at 11:06 AM, Michael Gerbracht <smartmails@arcor.de> wrote:
> > local t = {}
> > t = pack(test())
> > print(t[2])


> t={test()}
> but beware of nil values....

Thanks, this solution is even simpler than I expected.

> BTW, in your example you don't need to set t={} first, since that
> table would be forgotten when you reassign t just on the next line.

Ok, thats true ;-)

Michael

-- 
...using RiscLua 4.14, built from Lua 5.1.3