lua-users home
lua-l archive

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


On 24/11/2020 19:30, Petri Häkkinen wrote:
> Perhaps it’s again time to consider adding table.new? Rehashing is heavy
> when initializing these kind of large tables...

Maybe a new lib, 'array', that not only adds the 'new' construct but
also wraps up a given Lua tables with other array features via metatable
(fixed length with nils being the common issue that crops up here)

It could be done by a third party (although an official part of the Lua
distribution would help stop the eternal moaning :) )

Scott