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

tostring does not obey __name. #69

Closed
SquidDev opened this issue May 17, 2023 · 0 comments
Closed

tostring does not obey __name. #69

SquidDev opened this issue May 17, 2023 · 0 comments
Labels

Comments

@SquidDev
Copy link
Member

The following code should print out abc: 0xffffffff

print(tostring(setmetatable({}, {__name="abc"})))

However, it instead prints out table: 0xffffffff. This is going to be a really nasty change to make here, as we now need to thread LuaState to all the toLuaString methods (though I guess we need that for #66 too).

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

No branches or pull requests

1 participant