We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Gopher Lua version: 9d7d921 Go version: 1.21.0
Ran the following file:
local x = string.gmatch("asdf", "a") print(x())
$ lua5.1 test.lua a
$ glua test.lua test.lua:2: bad argument #1 to x (userdata expected, got nil) stack traceback: [G]: in function 'x' test.lua:2: in main chunk [G]: ?
It seems like string.gmatch produces a closure that expects some internal userdata. Thanks for your help!
string.gmatch
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Gopher Lua version: 9d7d921
Go version: 1.21.0
Ran the following file:
It seems like
string.gmatch
produces a closure that expects some internal userdata. Thanks for your help!The text was updated successfully, but these errors were encountered: