lua-users home
lua-l archive

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




On 22 June 2011 22:04, phlnc8 <phlnc8@gmail.com> wrote:
Section 8.3 of the manual should say: "luaL_typerror was removed.
Write your own version if you need it."

I understand that "deprecated" means "it is still there but don't use
it, we may remove it in a future version!" (eg. lua_cpcall or
luaL_register)  and "removed" means "it is no longer there, fix your
code now!" (eg. lua_getfenv)

OTOH, maybe the complete removal of luaL_typerror was a bug,  and the
function was really intended to be deprecated, still there but hidden
in some compatibility ifdef?

HTH

Phil



These are the changes I have seen.

Lua 5.1 API incompatibility with Lua 5.2 beta rc-2

==Removed==
LUA_GLOBALSINDEX
LUA_ENVIRONINDEX
lua_getfenv
lua_setfenv
luaL_typerror
luaL_putchar
lua_yield

==Compat removed ==
luaI_openlib
luaL_getn
luaL_setn
lua_ref
lua_unref
lua_getref
lua_open
lua_getregistry
lua_getgccount
lua_Chunkreader
lua_Chunkwriter
luaL_reg

==Requires LUA_COMPAT_ALL==
lua_cpcall
lua_strlen
lua_objlen
lua_equal
lua_lessthan

==Signature changed==
lua_pushlstring
lua_pushstring

==Structure changed==
luaL_Buffer
lua_Debug