lua-users home
lua-l archive

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


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 ... )