Skip to content
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

use table.unpack on Lua 5.2 #4

Open
moteus opened this issue Jan 16, 2013 · 2 comments
Open

use table.unpack on Lua 5.2 #4

moteus opened this issue Jan 16, 2013 · 2 comments

Comments

@moteus
Copy link

moteus commented Jan 16, 2013

I try Orbiter with Lua 5.2 and he works.
Except
lua52: G:\lua\5.2\libs\orbiter\lua\orbiter\init.lua:47: attempt to call global 'unpack' (a nil value)
and use module function in some examples.
if run lua52 -e "unpack=table.unpack"
then all warks. (except trylua)

PS. Do you think about use lhttp-parser?

@stevedonovan
Copy link
Owner

Thanks, that's easy to fix, as is trylua (while keeping 5.1 compatible)

It was fairly straightforward to use code from LuaSocket for parsing requests. I did not want any other external dependencies.

@moteus
Copy link
Author

moteus commented Jan 17, 2013

Its still here :)
orbiter\util.lua
orbiter\html.lua
orbiter\text.lua
examples\appserver.lua
examples\form2.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants