lua-users home
lua-l archive

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


Roberto, many thanks for your clarification.

Reading Lua sorces, it is clear the specific message "string too large" is the result of a  test before the call to allocate memory.

From the point of view of the consumer of Lua APIs: can also this case be part of the big family LUA_ERRMEM ?
Pls read the last email I wrote 5 minutes ago on this topic.

Massimo


On Thu, 21 May 2020 at 22:50, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> > lstrlib.c: LUA_ERRRUN : "test.lua:11: resulting string too large"

This error is not caused by memory exhaustion. It means that the
resulting string is too large to be handled by Lua, despite how much
memory is available.

-- Roberto