lua-users home
lua-l archive

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


In 4.0 Lua API, there's the 'lua_getn()' C function. In 5.0, the Lua
function is still available as 'table.getn()' but the C function
('aux_getn()' internally) has been declared 'static' and is not accessible
without modifications to the source.

I'll need to either copy-paste the 'aux_getn()' code or use 'lua_call()' to
bypass the scoping via Lua, but this feels cumbersome. 

Is this intentional or accidential in 5.0 API?

- asko.kauppi@fi.flextronics.com

###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.