lua-users home
lua-l archive

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


On Wed, Jul 27, 2011 at 7:02 AM, Antonio Vieiro
<antonio@antonioshome.net> wrote:
> I know it's no so easy to use as a 'for' loop, but it's 'easier' for me to
> always close things no matter what I do.

Plus, you can catch errors with pcall and guarantee that the iterator is closed.

steve d.