lua-users home
lua-l archive

[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.