Thank you for this clear example description. Possibly it would be
good to add such a "short example application sentence" also in the
ref manual in the description of function "lua_pushexternalstring"
(this is the only find result, looking for "external string" in the
ref manual).
Although of course reference manual is no "example storybook", for
such a special new variable type, such example of "large chunk of
memory, e. g. bitmap data" enhances understanding VERY much... .
Am Di., 14. Okt. 2025 um 20:01 Uhr schrieb Roberto Ierusalimschy
<
rob...@inf.puc-rio.br>:
>
>
> One typical case is for large constant strings (e.g., bitmap images).
> If the string is a constant in memory, Lua can use that same memory.
> To view this discussion visit
https://groups.google.com/d/msgid/lua-l/20251014180127.GB1216041%40arraial.inf.puc-rio.br.