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

  Lua Fundamentals培訓

 

 

 

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

主站蜘蛛池模板: 亚洲欧美日韩综合一区| 亚洲AV人无码综合在线观看| 精品综合久久久久久888蜜芽| 亚洲国产综合无码一区| 狠狠色婷婷综合天天久久丁香| 亚洲欧美日韩综合一区| 亚洲第一综合天堂另类专| 五月婷婷激情综合| 久久综合鬼色88久久精品综合自在自线噜噜| 五月婷婷激情综合| 日韩欧美国产综合在线播放| 色久悠悠婷婷综合在线亚洲| 情人伊人久久综合亚洲| 无码专区久久综合久中文字幕| 久久久久综合中文字幕| 色综合伊人色综合网站| 欧美综合自拍亚洲综合网| 精品无码综合一区| 色综合欧美在线视频区| 狠狠色伊人亚洲综合成人| 久久婷婷五月综合色奶水99啪| 国产香蕉久久精品综合网| 精品久久人人做人人爽综合| 婷婷五月综合激情| 久久婷婷是五月综合色狠狠| 国产色综合一二三四| 日韩欧美亚洲综合久久影院d3| 亚洲 自拍 另类小说综合图区| 亚洲AV人无码综合在线观看| 久久综合久久综合久久| 女人和拘做受全程看视频日本综合a一区二区视频| 伊伊人成亚洲综合人网7777| 亚洲国产综合专区电影在线| 综合在线视频精品专区| 观看 亚洲欧美日韩综合在线一区| 亚洲中文字幕无码久久综合网| 亚洲伊人成无码综合网| 色综合AV综合无码综合网站| 狠狠色综合网站久久久久久久| 婷婷四房综合激情五月在线| 色综合天天综合中文网|