lua-users home
lua-l archive

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


On Sat, May 7, 2011 at 2:45 PM, Peter Cawley <lua@corsix.org> wrote:
> Is it mandated by the reference manual that all implementations of Lua
> must return a single function rather than an iterator tuple for things
> like io.lines, string.gmatch, etc?

It appears not, since LuaJIT does not follow this pattern for io.lines:

> = io.lines 'lakefile'
function: fast#118      file (0x68ea1650)

steve d.