Lua table limits (creating)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Lua table limits (creating)

Ranier Vilela-2
Hi,

1.Question:
What is the limit for the number of tables?

If we can preallocate a new table with createtable,
we are limited by "int", unnecessarily.

lua_createtable uses luaH_resize, that accepts unsigned int.
LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize,
                                                    unsigned int nhsize);

2.Question:
Why can we not create a table with size_t?

regards,
Ranier Vilela

expand_limits_to_createtable.patch (1K) Download Attachment