[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature Request, `__next` metamethod.
- From: Duane Leslie <parakleta@...>
- Date: Fri, 24 Jun 2016 22:14:41 +1000
> On 24 Jun 2016, at 19:20, Soni L. <fakedme@gmail.com> wrote:
>
> next() is supposed to be raw. You should be using `local f, o, i = pairs(obj)` and passing f, o and i around.
Huh, I didn't think of that, but obviously that solves my problem. I can just patch my code with the following:
```lua
function next (t, k)
return pairs(t)(t, k)
end
```
I retract my request. Excuse the noise.