[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ipairs in Lua 5.3.0-alpha
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 17 Aug 2014 22:10:12 +0200
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.