aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-15 17:56:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-15 17:56:25 -0300
commit351ccd733298e08c41937c1baf22a68e62bfeca9 (patch)
treebe290db6b41e949c74d6699c7a01963c7cec9b21 /llex.c
parent6443185167c77adcc8552a3fee7edab7895db1a9 (diff)
downloadlua-351ccd733298e08c41937c1baf22a68e62bfeca9.tar.gz
lua-351ccd733298e08c41937c1baf22a68e62bfeca9.tar.bz2
lua-351ccd733298e08c41937c1baf22a68e62bfeca9.zip
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.)
Diffstat (limited to 'llex.c')
0 files changed, 0 insertions, 0 deletions