[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua 5.3 Proposal: Bring back pack()/unpack() for storing
- From: "John Hind" <john.hind@...>
- Date: Mon, 14 Apr 2014 12:28:16 +0100
> Date: Sun, 13 Apr 2014 18:34:07 -0700
> Subject: Lua 5.3 Proposal: Bring back pack()/unpack() for storing
> varargs
>
> Simple and sweet:
>
> I'd like to see pack()/unpack() added back for compressing a number of
> objects on the stack into a userdata and "unpacking" them to where a
> vararg might be expected.
>
It would be neat if Lua could support indexing semantics on the vararg
operator:
n = #... -- number of varargs.
v = ...[2] -- recover vararg by index.
- John