Add computed attributes / properties to userdata objects? #1381
Answered
by
vegorov-rbx
natinusala
asked this question in
Q&A
-
I have userdata registered as objects using the For example, Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
vegorov-rbx
Aug 30, 2024
Replies: 1 comment 1 reply
-
As a base, I would recommend looking at https://www.lua.org/pil/13.4.4.html and building upon that. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
natinusala
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
__index
and__newindex
can be functions, so you can make the redirection to function calls there.As a base, I would recommend looking at https://www.lua.org/pil/13.4.4.html and building upon that.