[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: how do I create a table with known big size?
- From: "Joseph C. Sible" <josephcsible@...>
- Date: Tue, 26 May 2020 18:15:13 -0400
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