-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io.lines not properly implemented #977
Comments
What does it do, what do you expect it to do? |
It calls |
The Lua manual doesn't really mention this use-case, it does say however:
Is the manual wrong / incomplete? Does it actually behave the way you want it to in vanilla Lua? |
Well I found the OC bug while porting Lua 5.2's IO lib (the C code) to LuaJIT/FFI |
If it behaves different to "vanilla" Lua, feel free to make a pull request to change it, with an example use-case and way to reproduce the discrepancy. Since it's basically undocumented behavior, I don't really think it's critical, though. |
Well you could say
Would allow io.lines(nil) to be equivalent to io.input():lines(), thus io.lines(nil, ...) should be equivalent to io.input():lines(...). |
io.lines(nil, ...)
doesn't work as it shouldThe text was updated successfully, but these errors were encountered: