lua-users home
lua-l archive

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


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