lua-users home
lua-l archive

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


2014-04-14 3:34 GMT+02:00 Coroutines <coroutines@gmail.com>:

> 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.
>
> I'd like to see these added in both the C API and exposed as 2 core
> library functions.
>
> My argument is that sometimes it can be weighty to store varargs in a
> table using table.pack().  Furthermore, it's difficult to do
> continuation passing style (CPS) without tables (or coroutines):
> http://codepad.org/eQP2e87S

1. Should tables be stored as references or are we talking about
serializing them in the process?
2. In terms of implementation, I've been trying to work out how to
do this more efficiently to a full userdata than to a table.
No success yet.