In newer versions of Lua you use unpackas in addPath(sPathName,unpack(Points)), but Lua 4.0 does not unpack.
C, unpack Lua 5.0 4.0:
static int luaB_unpack (lua_State *L) {
int n, i;
luaL_checktype(L, 1, LUA_TTABLE);
n = lua_getn(L, 1);
luaL_checkstack(L, n, "table too big to unpack");
for (i=1; i<=n; i++)
lua_rawgeti(L, 1, i);
return n;
}
lbaselib.c, base_funcs:
{"unpack", luaB_unpack},
C, , , :
function unpack(t)
return t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10]
end
, 200 . , addPath nil.
, , ( , 250 ):
function unpack(t,i)
i = i or 1
if t[i]~=nil then
return t[i],unpack(t,i+1)
end
end