[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Copying one table into another (in C)
- From: David Dunham <david@...>
- Date: Thu, 16 Aug 2007 09:04:48 -0700
On 15 Aug 2007, at 18:20, Jerome Vuarand wrote:
Here is a complete (untested) example:
Worked fine, thanks! I was missing lua_insert.
lua_insert(L, -2); /* swap key and value, stack:abkkv */
BTW, I really liked your stack comments.
David Dunham Macintosh Game Developer
GameHouse Studios +1 206 926 5722 www.gamehouse.com
"They said it couldn't be done but sometimes it doesn't
work out that way." -- Casey Stengel