lua-users home
lua-l archive

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

On Wed, Jul 9, 2014 at 8:35 PM, Luiz Henrique de Figueiredo
<> wrote:
>> there is a limit on the recursion depth of C function calls
> Otherwise, a Lua client might crash the host app:
>         function tostring(x) print(x) end
>         print(1)
> C function calls use the system's call stack, which is not infinite.

I kinda wish calling a C function would push a placeholder of sorts on
the Lua stack, so it could overflow the Lua stack before the host C
stack -- and there were no by-default limit on C calls for recursion