lua-users home
lua-l archive

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


There is any way to avoid this kind of "infinite loop"

function a()
        print"a"
        return b()
end

function b()
        print"b"
        return a()
end

a()

? C side, bytecode check, a macro in luaconf.h etc?

Is Lua a "infinite loop" safe language in any conception? (I really don't know the strategies involved to check/avoid these cases at implementation level)

Another easy way to break everything

t = {}
::t::
t[#t+1] = t
goto t


Any ideas?

--
Rodrigo Azevedo Moreira da Silva