lua-users home
lua-l archive

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

On 29 May 2013, at 13:40, Karol Dro wrote:

> Can someone give me a hint on how I can copy the contents of one array to
> another?

I'm assuming getfenv implies Lua 5.1. Looking at the 5.1 manual, you can see an example of iterating over a table using lua_next:

Setting the values in a new table is simply a matter of calling lua_settable