Tox Posted May 25, 2016 Share Posted May 25, 2016 what is the advantage of metatables? i've been coding for 8 months now, i've seen several examples of setmetatable here and there, still couldn't figure out what it does/how does it work. any comment is appreciated Link to comment
ViRuZGamiing Posted May 25, 2016 Share Posted May 25, 2016 Have you read this? https://www.lua.org/pil/13.html Kind regards Link to comment
Tox Posted May 25, 2016 Author Share Posted May 25, 2016 well yeah, of course i checked it out. i kind of understand what metatables do but the thing i am having a trouble with is what is metatables' advantage. i mean, can i still do the same things as metatables do without having to use metatables? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now