lua-users home
lua-l archive

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


> No, it only seems so.
> This code will first try to read 123 bytes from stdin and then all of stdin.
> Try typying control-d (or control-z) once or twice.
>
> In summary, Lua does check whether the first argument to read is a file handle.

Sorry, I was being stupid.

-- 
http://sc3d.org/rrt/
C++, n.  an octopus made by nailing extra legs onto a dog (Anon)