[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.new in 5.3?
- From: Sean Conner <sean@...>
- Date: Sat, 23 Nov 2013 16:36:34 -0500
It was thus said that the Great Roberto Ierusalimschy once stated:
> > 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.)
Given:
t = { 1 , 2 , 3 , ... }
What's the difference between
t = {}
and
table.clear(t)
-spc (Curious about this ... )