欧美色欧美亚洲另类七区,惠美惠精品网,五月婷婷一区,国产亚洲午夜

課程目錄:Lua Fundamentals培訓(xùn)
4401 人關(guān)注
(78637/99817)
課程大綱:

  Lua Fundamentals培訓(xùn)

 

 

 

Introduction to Lua
A bit of history
Lua's goals, features and non-goals
Resources of Lua documentation and tutorials
Installing the Lua interpreter
Setting up and using LuaRocks
Basic syntax and semantics
Identifiers
Comments, block comments
Global variables and enforcing of strictness
Local variables
Standalone programs, program arguments
Compilation units, chunks, expressions, semicolons
Data types and data structures
Basic types: nil, boolean, number, string
Object types: function, userdata, thread, table
References/objects vs. basic values
The importance of tables in Lua
Introduction to tables and their versatility
Tables as an associative array
Tables as numeric arrays, sequences
Basic control structures
The if then elseif else end
The while loop
The repeat loop
The simple for loop
Error handling
Return values vs exceptions
Converting a return value to an exception
Converting an exception to a return value
Error levels
Example programs
Polynomial evaluation
Breadth first search
Additional exercises
More about functions
Named arguments
Object-oriented calls
Closures
Currying
Tail calls
Multiple assignment and return
Varargs
Iterators and co-routines
The generic for loop
Stateless vs stateful iterators
Differences between iterators and co-routines
Metatables and metamethods
The set example
The __tostring metamethod
Arithmetic metamethods
The __index, __newindex metamethods
The __len metamethod
Modules and packages
Using modules
Creating modules
Organizing modules into packages
Object-oriented programming
The building blocks of OOP in Lua
Examples
Discussion on more advanced language features
Weak tables
Finalizers
Compilation, eval, loading

主站蜘蛛池模板: 兴业县| 宣武区| 日喀则市| 中牟县| 景洪市| 宾川县| 巧家县| 桃园县| 土默特左旗| 玛纳斯县| 龙游县| 万安县| 衢州市| 建宁县| 馆陶县| 安新县| 彭山县| 建昌县| 黄大仙区| 黎平县| 泰兴市| 若尔盖县| 佛学| 延寿县| 宁津县| 宁陵县| 八宿县| 涟源市| 井冈山市| 鄯善县| 大埔区| 进贤县| 军事| 溆浦县| 东兰县| 铁岭县| 榆林市| 汽车| 四川省| 大悟县| 灌云县|