[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Cause for "control structure too long"
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 4 Jul 2013 08:59:15 -0300
"control structure too long" occurs for instance in a loop whose body
is too big so that the jump back to the loop (or to its end) cannot be
represented in the corresponding VM instruction. See the test program below:
local b="x=1;"
while true do
local s="while true do "..b.." end"
local f,err=loadstring(s)
print(#b)
if f==nil then
print(#b,err)
break
end
b=b..b
end