lua-users home
lua-l archive

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


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.