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

buffer.tostring return _G.tostring on Lua 5.1 #35

Open
moteus opened this issue Dec 5, 2012 · 0 comments
Open

buffer.tostring return _G.tostring on Lua 5.1 #35

moteus opened this issue Dec 5, 2012 · 0 comments

Comments

@moteus
Copy link

moteus commented Dec 5, 2012

In alien_buffer_new we do not set lua_setuservalue (lua_setfenv on lua5.1)
In alien_buffer_get we call lua_getuservalue(L, 1); that return _G
And we lookup functions in global.
so call
buf:tostring(3,2) become to _G.tostring(buf, 3, 2)

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

1 participant