lua-users home
lua-l archive

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


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