lua-users home
lua-l archive

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


On Fri, 22 May 2020 at 07:21, Massimo Sala <massimo.sala.71@gmail.com> wrote:
> Does anybody recognize this inconsistent behavour of the APIs?
> Am I the only one annoyed about it?

The difference is that LUA_ERRMEM is generated by (and can *only* come
from) the lua core,
vs in "user code" which is no different to someone writing:

    error("out of memory")

LUA_ERRMEM does have some special semantics, e.g. that message
handlers are not called.