Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What are metatables and metamethods?

Asked by 5 years ago

So I want to explore the innerworkings of Lua and I heard metatables and metamethods were a great place to start. I was wondering what they are, what they do, and how they work. I can't find any tutorials anywhere on the matter so I was wondering if someone could tell me what they are or maybe give me links to some tutorials.

0
Do a google search. You must not have searched very hard. There are many different previous Scripting Helpers questions on this topic. User#25115 0 — 5y
0
Not only that, but there are plenty of different examples on other websites. User#25115 0 — 5y
0
Check out theking's answer on this topic (it doesn't cover everything but just a basic idea of them) https://scriptinghelpers.org/questions/68937/what-are-metatables-and-meta-methods-and-how-do-i-use-them#66029 User#24403 69 — 5y

Answer this question