79179832

Date: 2024-11-12 04:59:06
Score: 0.5
Natty:
Report link

I once fell in the same trap.

When a multires expression is used in a list of expressions without being the last element, or in a place where the syntax expects a single expression, Lua adjusts the result list of that expression to one element.

Lua 5.4 manual. 3.4.12 – Lists of expressions, multiple results, and adjustment.

So, table.unpack(…) or ... should be last in a list of expressions.

Perhaps, if you literally want to insert some values into a table, you could use table.insert()?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Alexander Mashin