[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Question about luaH_newkey
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 24 Aug 2020 12:10:03 -0300
> When I read the `luaH_newkey` function.
> I am a bit confused about the processing of mainposition(
> https://github.com/lua/lua/blob/master/ltable.c#L637) 。
> Even if the gval(mp) is empty, it still may be in some chain。of course, the
> result is still correct.
> Is it possible that in some extreme cases, all slots are in one chain.
> Please help me to point it out, if I have some mistakes. Thank you very
I am afraid I have not understood what you want to know.