|
|
||
|
I would just do:
t = { test() } -- Enclose function call in { }
print(t[1])
/Erik
Michael Roth wrote:
Hello, I'm new to lua. I would like to do the opposite of unpack(). Example: function test() return 1, 2, 3 end t = pack(test()) print(t[1])But in Lua 5.0 there isn't a pack() function, right? Why not? other solutions possible?Michael