Skip to content

Conversation

@cg-223
Copy link
Contributor

@cg-223 cg-223 commented Dec 9, 2025

This does use evil debug.setmetatable shenanigans.

By setting an __index on any number, you're allowed to write things such as

local num = 3

print(num:add(to_big(100))
-->103

Minimal trickery is required for this.

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