lua-users home
lua-l archive

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


On Friday 11 June 2004 18:21, Dan Laufer wrote:
> luaL_getn(), is what you're looking for to determine the number of elements
> in a table from the C side of things.

Only if the table has consecutive numerical indexes starting from 1. And if it 
doesn't have the size cached, that function will still just resort to 
iterating.

-- Jamie Webb