lua-users home
lua-l archive

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


> 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?

The manual is wrong. Many thanks for the feedback.

-- Roberto