Lua

A tiny language designed to be embedded.

💡
This course has 3 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.

Lessons

  1. Lua syntax and typesLocals versus globals, the eight value types, 1-based tables, and the operators that surprise newcomers.
  2. Tables, metatables and object orientationHow __index and __newindex turn plain tables into classes, proxies and read-only views.
  3. Embedding Lua in a host programThe C API stack, passing values in both directions, registering host functions, and sandboxing untrusted scripts.

More in Programming Languages

C C++ C# Scala Dart VBA

Last refreshed 2026-09-17.