lua-users home
lua-l archive

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


On Mon, Sep 29, 2003 at 04:44:08AM -0400, Jason P wrote:

 
> for (int i = 0; i < NumFileNames; i++)
> {
>     lua_pushnumber(L,i);
>     lua_pushstring(L,MyFileNames[i]);

Are your sure ?
Lua's tables' indexes begin to 1 ?

>     lua_settable(L,-3);
> }
> return 1;
>