[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: import function c implementation.
- From: Kevin Martin <kev82@...>
- Date: Wed, 29 May 2013 13:52:51 +0100
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:
http://www.lua.org/manual/5.1/manual.html#lua_next
Setting the values in a new table is simply a matter of calling lua_settable
Thanks,
Kevin