[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.new in 5.3?
- From: Choonster TheMage <choonster.2010@...>
- Date: Sat, 23 Nov 2013 20:12:09 +1100
On 23 November 2013 19:29, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>> Speaking of new Lua primitives, I've also been discussing the new
>> string.buffer API and table.clear() API with Mike Pall (off-line) for
>> LuaJIT 2.1, also under the name of performance :)
>
> We are also considering a table.clear function, mainly to help the GC.
> (Not sure about the name, though.)
>
> -- Roberto
>
World of Warcraft's embedded Lua adds a `table.wipe` function used to
remove everything from a table, although some may consider the name a
bit obscure for what the function does.