This code:
function foo() return 1, 2, 3 end bar = {} bar = {a, b, c = foo()}
produces:
bar.a = nil bar.b = nil bar.c
bar = {} bar.a, bar.b, bar.c = foo()