|
I found the answer in ( http://lua-users.org/lists/lua-l/2020-04/msg00108.html).
Thanks.
I try to describe my question in another way.When call luaH_newkey(https://github.com/lua/lua/blob/master/ltable.c#L636), it first call 'mainpositionTV' to find the 'mp'。If the 'isempty(gval(mp)) == true && gnext(mp) != 0', it don't correct the chain.What are the disadvantages if it correct the chain at this case.Maybe for performance or other reasons?Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于2020年8月24日周一 下午11:11写道:
I am afraid I have not understood what you want to know.
-- Roberto