[Date Prev][Date Next][Thread Prev][Thread Next]
- 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. <firstname.lastname@example.org> 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:
function next (t, k)
return pairs(t)(t, k)
I retract my request. Excuse the noise.