[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: [Q] Read table with no key (C/C++)
- From: "Kevin Baca" <lualist@...>
- Date: Thu, 20 Nov 2003 07:29:12 -0800
lua_pushstring( L, "test" );
lua_gettable( L, LUA_GLOBALSINDEX );
lua_rawgeti( L, -1, 2 );
lua_rawgeti( L, -1, 3 );
lua_Number n = lua_tonumber( L, -1 );
-Kevin
> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br
> [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of CV?l
> Sent: Thursday, November 20, 2003 7:24 AM
> To: lua@bazar2.conectiva.com.br
> Subject: [Q] Read table with no key (C/C++)
>
>
> Hi everyone,
>
> I want to read following table from C with random access:
>
> test = {
> { 1, 2, 3, 4},
> { 5, 6, 7, 8},
> { 2, 4, 5, 9}
> }
>
> I just want to retrieve 7 which is on 3rd place of
> 2nd row. How can I do this?
>
>
> Regards,
> Choi, Woo Seong
>
>