lua-users home
lua-l archive

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


On Fri, 5 Mar 2021 at 13:25, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>
> > I have a question related to this commit:
> >
> > https://github.com/lua/lua/commit/4e47f81188d37e29027158b76271d02a781242e2
> >
> > If the threading of stack variables occurs this way what happens if
> > someone swaps stack variables as I believe it is possible to do using
> > the C api?
>
> What do you mean by "swaps stack variables"?
>

I was thinking about apis such as lua_xmove() , lua_rotate() etc. I
guess it is not an issue as the setobj() macros only write the value
part of the slot.