commit | 351ccd733298e08c41937c1baf22a68e62bfeca9 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Mon May 15 17:56:25 2023 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Mon May 15 17:56:25 2023 -0300 |
tree | be290db6b41e949c74d6699c7a01963c7cec9b21 | |
parent | 6443185167c77adcc8552a3fee7edab7895db1a9 [diff] |
Towards a new implementation of arrays The array part of a table wastes too much space, due to padding. To avoid that, we need to store values in the array as something different from a TValue. Therefore, the API for table access should not assume that any value in a table lives in a *TValue. This commit is the first step to remove that assumption: functions luaH_get*, instead of returning a *TValue where the value lives, receive a *TValue where to put the value being accessed. (We still have to change the luaH_set* functions.)
This is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.
Please do not send pull requests. To report issues, post a message to the Lua mailing list.
Download official Lua releases from Lua.org.