Tox Posted May 25, 2016 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
ViRuZGamiing Posted May 25, 2016 Posted May 25, 2016 Have you read this? https://www.lua.org/pil/13.html Kind regards "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
Tox Posted May 25, 2016 Author 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?
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