[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Memory errors from luaL_loadbuffer and luaL_loadstring
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 8 Apr 2009 13:42:42 -0300
> 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