lua-users home
lua-l archive

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



200 local variables is the limit, so use one less and LuaJIT will NOT throw the error.

My code is a simplified version (thus all variables have the same name) of real life
automatically generated script, which has about 160 local vars and some number of
big matrices containing numeric data.
According to language manual, such code is completely legal.
If some strange complexity limitations are exist in vanilla Lua implementation, they
must be clearly declared in the manual.



Computer memory (even with swap) is a finite resource. Of course there will be limits, Lua is a programming language and is constrained by the hardware upon which is runs.

The good news is that you should be able to modify your copy of Lua to use a higher limit.

 
--Egor