lua-users home
lua-l archive

Re: Missing function in lua API: move an element on the top of the stack ?

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


I found in the lua manual a function: lua_insert which put the element
on the top of the stack at a given index.
But is there a solution to put an element at a given index on the top
of the stack (and not a copy of the element like lua_pushfield do) ?
I don't know about lua_pushfield, but how about using lua_pushvalue and lua_remove?
Ashwin.
--
no signature is a signature.

AltStyle によって変換されたページ (->オリジナル) /