lua-users home
lua-l archive

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


On Thu, May 11, 2017 at 1:15 PM, Viacheslav Usov <via.usov@gmail.com> wrote:

> And to be clear, I do not assume that Lua should have infinite tables. It would be good to get a regular Lua error like "table too big" when a table becomes too big, but not a crash.

> Another thing I noticed is that the maximum table length (for whatever meaning of length) is not mentioned in the documentation, nor is the behaviour when an attempt is made to exceed it.

I can see in the GitHub/Lua repo that the table implementation is still being changed. What I also see is that most of the code and even the definition of the table type uses unsigned or signed ints to deal with the array part of the table. My question is, is the current thinking that the array part must be only as big as the the underlying int type may address? Has it been considered to allow greater ranges for the array part?

Cheers,
V.