-
-
Notifications
You must be signed in to change notification settings - Fork 389
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
These are (as far as I know) undocumented functions that LuaJIT provides after you require "table.new" and require "table.clear" respectively.
table.new is a binding to lua_createtable, which allows you to preallocate a table with a specified amount of elements in the array part and the record part. The signature is as follows:
function table.new(narr: number, nrec: number): tabletable.clear is a binding to lj_tab_clear, which clears a table without having to iterate over all of its elements. Its signature is as follows:
function table.clear(t: table)Right now if you try to use either of them, the language server complains that they don't exist:

Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request