I know newproxy is a function that takes the argument addMetatable. This function returns a userdata. I don't quite understand what this means. I know what a userdata is, but I don't quite understand how making new userdatas will have an important role in coding games. In the userdata, there is a metatable(if addMetatable is true). I am adequetly good at metatables. I have never seen an example that uses newproxy.
local NewUserdata = newproxy(true) print(NewUserdata.mt) -- Is there an mt metatable in the userdata? I am just gonna print its --pointer
I don't understand how to access the mt.
I think the most difficult question to answer is any use cases for this.
Thank you for looking at this question.