lua-users home
lua-l archive

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


--- In lua-l@yahoogroups.com, "Bilyk, Alex" <ABilyk@m...> wrote:
> I think in Lua 5 you are supposed to say
> 
> 	local tbl = {}
> 	local table_size = tbl : getn()
> 
> In which case the table is always the first parameter. 
> Also, correct me if I am wrong Lua 5 Beta doesn't define luaL_getn
but rather luaB_getn. I don't have the latest beta though.
> 
> AB
I think you misunderstood my post. I was talking about int
luaL_getn(lua_State *L, int t) defined in the aux library for getting
the size of a vector table from within C and not the lua version of
getn with wich I have had no problems yet.