lua-users home
lua-l archive

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


2014-08-05 4:59 GMT+02:00 Patrick Donnelly <batrick@batbytes.com>:

> This actually brings to mind the (IMO) evil and prevalent use of
> lua_rawseti/lua_rawgeti in the Lua table library.

No longer so in 5.3.0 alpha.

> I believe the lua_rawseti and lua_rawgeti are favored due to
> their interface, not because they bypass metatables. There
> really should be a similar friendly interface for non-raw
> geti/seti.

Those geti/seti functions are defined in src/ltablib.c in 5.3.0 alpha.
A "TabA" structure is used to switch easily between raw/non-raw.