[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C function returning table
- From: Jose Marin <jose_marin2@...>
- Date: Fri, 18 Feb 2005 13:04:04 -0300 (ART)
Yes, indeed!
Thanks for the tip!
The function became this:
int thefunc(lua_State *L)
{
lua_newtable(L);
// check parameters ...
for(int i = 1; i <= someValue; i++){
...
lua_pushstring(L, someString);
lua_rawseti(L, i, -1);
}
return 1;
}
Much better!
_______________________________________________________
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis