Skip to content

Conversation

@csnover
Copy link

@csnover csnover commented Oct 3, 2025

Technically, to be 100% compatible, this should be calling through a metatable assigned to all strings which has __index pointing to the string global table. This intermediate approach works for all sane use cases without requiring so much work. (It is not possible to set a metatable on a string in PUC-Lua, but it is at least possible to call getmetatable on a string and then mess with it.)

Technically, to be 100% compatible, this should be calling through
a metatable assigned to all strings which has __index pointing to
the string global table. This intermediate approach works for all
sane use cases without requiring so much work. (It is not possible
to *set* a metatable on a string in PUC-Lua, but it is at least
possible to call `getmetatable` on a string and then mess with it.)
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

Successfully merging this pull request may close these issues.

1 participant