[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Opposite of unpack?
- From: Michael Gerbracht <smartmails@...>
- Date: Thu, 17 Jul 2008 18:29:06 +0200 (MESZ)
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