[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature Request, `__next` metamethod.
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 24 Jun 2016 10:03:18 +0200
On Fri, Jun 24, 2016 at 10:00 AM, Duane Leslie
<parakleta@darkreality.org> wrote:
> it seems to have been that the `__pairs` metamethod was preferred
> because it was more powerful (it allows the construction of a `next`
> equivalent function as a closure with additional information).
That will probably be your answer; if the solution is only a closure
away, why complicate the metamethod system?