lua-users home
lua-l archive

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


On Sun, 9 Jan 2022 at 18:10, Xmilia Hermit <> wrote:
> "The API guarantees that any pointer to a string in a stack index is
> valid while the string value at that index is not removed from the
> stack. (It can be moved to another index, though.)".

I knew there must be something rotten. After so much manual reading I
feel ashamed to have skipped that.

> This might be a problem for the SSO since it would need to create a heap
> string whenever a C function tries to get a pointer to the string since
> it could be moved to a different stack index and the pointer still needs
> to be valid.

It is, a show stopper for me. Thanks.

Francisco Olarte.