lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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?