
New API pack() returns a table with an "n" field of always 0?
?pack(1,2).n -- 0 (expected: 2) ?pack(1,2,nil,3,nil).n -- 0 (expected: 5) |
table.pack works as expected in lua.

1


Just to be sure: Does anything else in lua rely on pack()? It might be awkward if something expects .n to be in the low bits like it was before the fix. You don't want to end with something internal unpacking 64k, 128k, etc. entries.
[Please log in to post a comment]