How to append argument(s) to ...?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: How to append argument(s) to ...?
- From: Atry <pop.atry@...>
- Date: 2008年11月11日 17:15:38 +0800
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' ?