Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Posts about Lua

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

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 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

One of Lua's study notes (first-class topics)

May 12, 2021 15:00 0 Comment Lua

Objective, Objective, First-order topics, Objective, This article is aimed at experienced C/C?programmers who want to learn about Lua or quickly grasp Lua's key concepts and patterns for devel

How does Lua output the table of the tree structure?

May 12, 2021 15:00 0 Comment Lua

How does Lua output the table of the tree structure?, To make the game's front-end data output more structured, a simple tree structure is made to print the data., ccmlog.lua, local function __tostring(va

Lua Learning Notes V (Mathematics Library in Lua)

May 12, 2021 15:00 0 Comment Lua

Lua Learning Notes V (Mathematics Library in Lua), The math library in Lua, All functions of the math library in Lua 5.1 are as follows:, math.pi is the circular rate constant of 3.14159265358979323846

Lua Learning Notes IV (Basic Library in Lua)

May 12, 2021 15:00 0 Comment Lua

Lua Learning Notes IV (Basic Library in Lua), The basic library of functions in Lua, Table 1, The basic library of functions, Function, Parameters, Note, assert(v[,mess age]), An assertion equival

Lua Learning Notes III (High-Level Topics)

May 12, 2021 15:00 0 Comment Lua

High-level topics, High-level topics, 1. Iteration, 2. Collaboration thread, Appendix CommonLy Used Lua References, High-level topics, 1. Iteration, 1.1 Instance code:, --迭代, local function enum(array), local index = 1, return function(), local ret = array[index], i

Lua Learning Notes II (Advanced Topics)

May 12, 2021 15:00 0 Comment Lua

Advanced topics, Advanced topics, 1. Function closure, 2. How object-based implementations are implemented, 3. Meta-table, 4. Prototype-based inheritance, 5. Package, Advanced topics, 1. Function closure, 1.1 instance code, function createCountdownTimer(second), local ms = second * 1000 --ms为countDown的Upvalue, local

Lua database access

May 12, 2021 15:00 0 Comment Lua

Lua database access, Lua database access, Lua database access, This article focuses on the operating library of the Lua database:, LuaSQL., He is open source and supports databases such as ODB

Lua is object-oriented

May 12, 2021 15:00 0 Comment Lua

Lua is object-oriented, Lua is object-oriented, Object-oriented features, Object-oriented in Lua, Lua inherits, Function override, Lua is object-oriented, Object Oriented Programming (OOP) is a very popular computer programming architecture., There are several programming language

Lua garbage collection

May 12, 2021 15:00 0 Comment Lua

Lua garbage collection, Lua garbage collection, The garbage collector function, Lua garbage collection, Lua uses automatic memory management., This means that you don't have to worry about how the memory required for newly created

Lua debugging (Debug)

May 12, 2021 15:00 0 Comment Lua

Lua debugging (Debug), Lua debugging (Debug), The debug type, Lua debugging (Debug), Lua provides the debug library to provide the ability to create our custom regulators., Lua itself doesn't have a built-in regu

Meta-tables and meta-methods in Lua

May 12, 2021 16:00 0 Comment Lua

Objective, Objective, The meta-method of the arithmetic class, __tostring method, How to protect our "cheese" - meta-table, __index method, __newindex method, Objective, Each value in Lua can have a meta-table. A, metasheet is a normal Lua table that defines the behavior of the original value under certain o

Table library in Lua

May 12, 2021 16:00 0 Comment Lua

Table library in Lua, Table library in Lua, table.concat(table, sep, start, end), Table library in Lua, The table library consists of auxiliary functions that operate table. O, ne of his main roles is to give a reasonable explanatio