lua-users home
lua-l archive

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


The Lua C API functions lua_rawget and lua_rawset expect a table which is used without any runtime check (except an API check) (https://github.com/lua/lua/blob/5d708c3f9cae12820e415d4f89c9eacbe2ab964b/lapi.c#L736). However, the manual (https://www.lua.org/manual/5.4/manual.html#lua_rawget) states for these functions that they are similar to lua_gettable which is not restricted to tables. Since this seems not very clear (https://github.com/LuaJIT/LuaJIT/issues/810) it would be nice if the manual would make it clear for these two functions that tables are expected.

Regards,
Xmilia