lua-users home
lua-l archive

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

On 21 jun 2009, at 14:32, Luiz Henrique de Figueiredo wrote:

The function luaL_checkudata(L, index, name) exits with an error when  
the name does not correspond to the one in the metatable consulted.
However, I have a situation where this situation is not necessarily  
fatal for the program.

Lua 5.2 will also have luaL_testudata, which does not abort.

Nice to hear. In the mean time in my interim solution I will use the same API call.

Hans van der Meer