lua-users home
lua-l archive

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


The manual lists [-0, +1, m] for  luaL_loadbuffer and luaL_loadstring.
These functions only call lua_load from the Lua API, which itself is
marked as [-0, +1, -] in the manual. This seems contradictory -
lua_load will not throw memory errors (it'll return them, which is
different to throwing them), yet luaL_loadbuffer and luaL_loadstring,
which only call lua_load, _can_ throw memory errors?

Is the manual mistaken here, or is it possible for luaL_loadbuffer and
luaL_loadstring to throw memory errors?