Coding With Fun
Home Docker Django Node.js Articles FAQ

Posts about Lua

Lua Getting Started tutorial

May 12, 2021 13:00 0 Comment Lua

Lua Getting Started tutorial, Lua Getting Started tutorial, Design purpose, Lua feature, Lua scenario, The first Lua program, Example (Lua 5.3), Lua Getting Started tutorial, Lua is a lightweight, compact scripting language, written in standard C and open in source code, designed to be embedded

Lua environment installation

May 12, 2021 13:00 0 Comment Lua

Lua environment installation, Lua environment installation, Installed on a Linux system, Installed on the Mac OS X system, Lua is installed on the Window system, Lua environment installation, Installed on a Linux system, Installing Lua on Linux and Mac is as simple as downloading the source package and unziwing

Lua basic syntax

May 12, 2021 13:00 0 Comment Lua

Lua basic syntax, Lua basic syntax, The first Lua program, Scripted programming, Comments, Marker, Keywords, Global variable, Lua basic syntax, Lua is easy to learn and we can create our first Lua program!, The first Lua program, Interactive programming, Lua provides interact

Lua data type

May 12, 2021 13:00 0 Comment Lua

Lua data type, Lua data type, nil (empty), Boolean (Boolean), number (number), String (string), table (table), function (function), thread (thread), userdata (custom type), Lua data type, Lua is a dynamic type language, and variables are not defined by type, but are only assigned values to variables., Values can be stored

Lua variable

May 12, 2021 13:00 0 Comment Lua

Lua variable, Lua variable, The assignment statement, Index, Lua variable, Before a variable can be used, it must be declared in code, i.e. it is created., The compiler needs to know how to open up a store for s

Lua loop

May 12, 2021 13:00 0 Comment Lua

Lua loop, Lua loop, Loop control statements, Unlimited loops, Lua loop, In many cases we need to do some regular repetition, so we need to repeat certain statements in the program., A set of statements that are r

Lua process control

May 12, 2021 13:00 0 Comment Lua

Lua process control, Lua process control, Lua process control, The Lua programming language process control statement is set by the program setting one or more conditional statements., The spe

Lua function

May 12, 2021 13:00 0 Comment Lua

Lua function, Lua function, Multiple return values, Variable parameters, Lua function, In Lua, functions are the primary method of abstracting statements and expressions., It can be used to handle some special work and to c

The Lua operator

May 12, 2021 14:00 0 Comment Lua

The Lua operator, The Lua operator, Arithmetic operator, The relationship operator, The logical operator, Other operators, Operator priority, The Lua operator, An operator is a special symbol that tells the interpreter to perform a specific mathematical or logical operation., Lua offers seve

Lua string

May 12, 2021 14:00 0 Comment Lua

Lua string, Lua string, String operation, Lua string, A string or string is a string of characters consisting of numbers, letters, and underscores., Strings in the Lua language can be represen

Lua array

May 12, 2021 14:00 0 Comment Lua

Lua array, Lua array, A one-dimensional array, Multi-dimensional array, Lua array, An array, a collection of elements of the same data type in a certain order, can be a one-dimensional array and a multi-dimensional array.,

Lua iterator

May 12, 2021 14:00 0 Comment Lua

Lua iterator, Lua iterator, Generic for iterator, Stateless iterator, A multi-state iterator, Lua iterator, An iterator is an object that can be used to traverse some or all of the elements in a standard template library container, each represe

Lua table (table)

May 12, 2021 14:00 0 Comment Lua

Lua table (table), Lua table (table), The construction of the table, Table action, Lua table (table), Table is a data structure used by Lua to help us create different data types, such as numbers, dictionaries, and so on., Lua table

Lua modules and packages

May 12, 2021 14:00 0 Comment Lua

Lua modules and packages, Lua modules and packages, The require function, C package, Lua modules and packages, Modules are similar to a encapsulation library, starting with Lua 5.1, which adds a standard module management mechanism tha

Lua meta-table (Metatable)

May 12, 2021 14:00 0 Comment Lua

Lua meta-table (Metatable), Lua meta-table (Metatable), __index meta-method, __newindex meta-method, Add an operator to the table, __call meta-method, __tostring meta-method, Lua meta-table (Metatable), In Lua table we can access the corresponding key to get the value of the value, but we can't operate on both table., So Lu