[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Bug report] unpack()ing multiple tables does not behave as expected
- From: Doug Rogers <rogers@...>
- Date: Mon, 19 May 2008 11:56:23 -0400
ddneilson wrote:
> table1 = { "A", "B" }
> table2 = { "C", "D" }
> print(unpack(table1))
> print(unpack(table1), unpack(table2))
> It doesn't seem to matter how many tables I decide to unpack, or how
> many elements are in the tables, all tables except the last one listed
> will only print their first element.
This is expected (and desired!) behavior. See the message thread
containing http://lua-users.org/lists/lua-l/2007-09/msg00205.html.
Doug
--
Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220