Mark Hamburg wrote:
function pack( ... ) local result = { ... } result.n = select( '#', ... ) return result end unpack( t, 1, t.n )
I think that is the safest way. function pack(...) return {n=select('#",...),...) end Adrian