lua-users home
lua-l archive

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

I wrote:
> BTW, isn't the name "lines()" a bit misleading now that it doesn't
> necessarily iterate over lines?
> Maybe something like "reader()" instead?

Hmm, now that I think about it, I guess "reader()"  doesn't really
work in the most common usage, "for ..."
Argh, I dunno...

[This is a really cool extension to io/file.lines, BTW... I imagine it
was almost free to implement (by just passing through the argument to
read), but is obviously quite handy...]


Cat is power.  Cat is peace.