[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: RE: Lua 5 vs Lua 4
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 17 Sep 2003 19:04:41 -0300
>I don't use pcall(), whatever that is.
>
>All Lua code in my Game Engine is executed with lua_dostring.
lua_dostring is marked to be renamed luaL_dostring, as it is now in the auxlib.
Moreover, the _ALERT scheme is deprecated.
The correct way to handle your problem is to call luaL_loadbuffer, handle any
errors that it returns, and then call pcall() and handle any errors that it
returns. See http://lua-users.org/lists/lua-l/2002-12/msg00046.html .
--lhf