lua-users home
lua-l archive

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


Short answer: Mike interprets the manual as saying "can return an
iterator triple" when the text says "iterator function".
Long answer: http://lua-users.org/lists/lua-l/2010-03/msg00250.html

On Wed, Mar 10, 2010 at 6:23 PM, Tony Finch <dot@dotat.at> wrote:
>
> $ luajit -e 'local f = io.lines("files.lua"); while f() do end'
> luajit: (command line):1: bad argument #1 to 'f' (FILE* expected, got no value)
> stack traceback:
>        [C]: in function 'f'
>        (command line):1: in main chunk
>        [C]: ?
> $ lua -e 'local f = io.lines("files.lua"); while f() do end'
> $ echo $?
> 0
>
>
> Tony.
> --
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
> GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
> MODERATE OR GOOD.
>