A tutorial on integrating Lua as a simple scripting language into a Windows C++ RPG engine. Lua is an extension programming language designed to support general procedural programming with data ...
Lua is an extension programming language designed to support general procedural programming with data description facilities. It also offers good support for object-oriented programming, functional ...
-- A function is a block of code with a name (usually) and a parameter list. -- Think of it like a shell function in zsh: `greet() { echo "hi $1" }`, -- except Lua parameters have real names instead ...
-- an argument (or returns one — you already built those in lesson 04's -- factories). Since functions are plain values, nothing new is needed; -- the pattern just gets a name.