lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 10 July 2015 at 11:46, Soni L. <fakedme@gmail.com> wrote:
> Syntax sugar.
>
> t[k1, k2, k3] = v1, v2, v3 -->
> mt.__newindex(t, k1, v1)
> mt.__newindex(t, k2, v2)
> mt.__newindex(t, k3, v3)

(this is a terrible idea);

so what happens with a multiple assignment?
t[k1,k2], l1, l2, t[k3,k4] = 1,2,3,4,5,6,7,8,9