[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: constant table overflow
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Fri, 9 Nov 2012 09:14:47 +0000
Try this script (in Lua 5.1.4):
local t = {}
for i = 1,2^18 do
t[#t+1] = '(function() return '..i..' end)();\n'
end
print( loadstring( table.concat( t ) ) )
I always thought that the constant table limit is per function. But why do I get this output:
nil constant table overflow
I think I am missing something here.
Jörg