lua-users home
lua-l archive

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


On Tue, May 26, 2020 at 5:19 PM Andrea <andrea.l.vitali@gmail.com> wrote:
>
> Can Lua team add table.create(narray,nash) to the table library in Lua 5.4? Does this make sense?

I doubt you'll get that in 5.4 at this point. Here's two workarounds though:

1. Handcraft some Lua bytecode to create a function that uses NEWTABLE
to do what you want
2. Create a C library that you can "require" that trivially wraps
lua_createtable

Will either of those work for you?

Joseph C. Sible