lua-users home
lua-l archive

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


On Mon, Apr 27, 2015 at 7:10 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
The limitation you got is the number of "registers" used by the code.
Roughly, you have to count 50
for each dimension (if that dimension has at least 50 elements).

Thank you, now it is clear.
Big 2D array constructors are used frequently, so using > 100 local variables should be
considered as dangerous. 
The limitations of 200 locals was misleading for me.
And, probably, Lua internals limits MAXSTACK to one-byte value because of bytecode...

--Egor