lua-users home
lua-l archive

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


Hi David,

> I thought unpack was a builtin and has been in Lua for, basically, forever.

Lua 5.2 changed unpack to table.unpack. If you need to have the same script run under Lua 5.1, 5.2, and 5.3, you may want to use

local unpack = table.unpack or unpack

Paul.