lua-users home
lua-l archive

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


2013/11/20 Rena <hyperhacker@gmail.com>:

> I wonder if there's a good reason for Lua 5.3 or a third-party library to
> add table.new(narr, nrec) (as seen in LuaJIT) to Lua? It seems like a useful
> optimization, and its implementation should only take a couple of lines
> (call lua_createtable() and return).

While we are on the subject of API functions that would be nice to
have directly from Lua:

1. getmetafield(tbl,key)  -- calls luaL_getmetafield.
2. concat(...) -- calls lua_concat, which respects __tostring.