Useful Links
Computer Science
Programming
By Language
Lua Programming
1. Introduction to Lua
2. Lua Language Fundamentals
3. Control Flow Structures
4. Functions
5. Tables: Lua's Primary Data Structure
6. Metatables and Metamethods
7. Modules and Package Management
8. Error Handling and Debugging
9. Advanced Language Features
10. Object-Oriented Programming Patterns
11. Standard Library Overview
12. C API Integration
13. Lua Ecosystem and Tools
Metatables and Metamethods
Metatable Concepts
Purpose and Functionality
Setting and Getting Metatables
Metatable Inheritance
Arithmetic Metamethods
Addition Metamethod
Subtraction Metamethod
Multiplication Metamethod
Division Metamethod
Modulus Metamethod
Exponentiation Metamethod
Unary Minus Metamethod
Relational Metamethods
Equality Metamethod
Less Than Metamethod
Less Than or Equal Metamethod
Table Access Metamethods
Index Metamethod
Handling Missing Keys
Inheritance Implementation
Newindex Metamethod
Controlling Assignment
Read-Only Tables
Other Metamethods
Tostring Metamethod
Call Metamethod
Length Metamethod
Garbage Collection Metamethod
Raw Access Functions
Rawget Function
Rawset Function
Rawequal Function
Rawlen Function
Previous
5. Tables: Lua's Primary Data Structure
Go to top
Next
7. Modules and Package Management