Re: Why Lua table pairs iteration doesn't hold the last key's position in Node[] ?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Why Lua table pairs iteration doesn't hold the last key's position in Node[] ?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 8 Oct 2020 16:09:17 -0300
> why pairs doesn't return a C closure with an integer upvalue to hold
> the last key's position in Node[] ?
> I think this can be improved.
Certainly it could. Only note that this would demand a change in the C
API, too.
-- Roberto