lua-users home
lua-l archive

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


I tried the follow code, but it seems not work.

function a(...) return ..., "a" end
assert(select(3, a(1, 2)) == "a");

Is there any way to append a argument to vararg without `{...}' and `unpack' ?