lua-users home
lua-l archive

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


"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