1 2 3 4

Introduction

130

Lua is a general-purpose scripting language. It is widely used in game development, however it's also applicable in many other areas.

Lua is a case-sensitive programming language, which means it sees lowercase and uppercase letters as different name characters.

Lua is a dynamically-typed programming language. A type of the value of some particular variable is determined during the runtime, not compile time.

Lua memory management is implemented as an automatic garbage collector. You don't need to delete variables manually. Variable lifetime is non-deterministic.

Lua is implemented in plain C. If you're not using Lua as a part of some framework which already supports Lua, then you should compile it for your target platform first. Or just include its source code into your project — the whole Lua engine compiles in less than a second, whoa!

There are three different areas which you may and would want to learn:

  1. How to code in Lua itself;
  2. How to work with Lua on C or C++ side;
  3. How to use Lua in other, non-C/C++ programming languages.

In this tutorials we will focus on the first one. The rest subjects will be covered in time. As for now, you can use online Lua sandbox on the official Lua website: https://www.lua.org/cgi-bin/demo

Rate this post:
Lesson 2
Share this page:

Learning plan

1. Introduction
What is Lua script and what are these tutorials about
The most simple Lua program and where you can run it
A very brief overview of Lua syntax and expressions
A list of data types and their descriptions which Lua operates on