lua-users home
lua-l archive

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

On Sat, Jan 9, 2010 at 13:43, steve donovan <> wrote:
> On Sat, Jan 9, 2010 at 12:26 PM, Alexander Gladysh <> wrote:
>> What about syntax to append a table to a table? I vaguely remember
>> that it is fits nicely in the bytecode.

> Is it this discussion?


> I remember being persuaded that it was a cool thing.

No that is this one

(Sorry for not linking to it in the first place.)

Basically, instead of

t[#t + 1] = foo
t[#t + 1] = bar
t[#t + 1] = baz

one would be able to write

t:{foo, bar, baz}

without any changes to the VM.