hello, I was using the table.unpack method and I noticed some strange behavior.
function func(supplement, data1, data2)
print(supplement, data1, data2)
end
local data = {
"Isaiah",
"Daniel"
}
func("Camilla", table.unpack(data))
-- output: Camilla, Isaiah, Daniel
notice what happens if I reverse the arguments
function func(data1, data2, supplement)
print(data1, data2, supplement)
end
-- same data
func(table.unpack(data), "Camilla")
-- output: Isaiah, Camilla, nil
now this isn't a huge problem because I could even just unpack these into variables first then pass them in. I am wondering if anybody knows why this happens?
