lua-users home
lua-l archive

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


> Can't I do all those things from inside a C function as well? Untested code:

If you want to crash your program from C, you don't need Lua:

  memset((void *)0, 0, INT_MAX);

The point is to avoid crashing your program from Lua. Whatever you
do in Lua, you cannot crash your program, even if you want (bugs
notwithstanding). Actually, more than crashing a program, we want to
make sure that Lua has no "buffer-overflow" bugs and other nasty things
like that.

-- Roberto