lua-users home
lua-l archive

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


On Tue, Apr 28, 2015 at 2:27 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> On Tue, Apr 28, 2015 at 2:51 PM, Paul K <paul@zerobrane.com> wrote:
>> | function appendud(tab, ud)
>> |   tab:beginupdate() finalize tab:endupdate() end
>> |   ud:lock() finalize ud:unlock() end
>> |   for i = 1,#ud do
>> |     tab[#tab+1] = ud[i]
>> |   end
>> | end

> is this Lua?

Yes, with the finalize/guard patch applied.

Paul.