Lua 程序设计 编译:中国 lua 开发者 http://www.luaer.cn
1.21.1 15.1 基本方法 ....................................................................................................... 90
1.21.2 15.2 私有成员(Privacy) .................................................................................... 91
1.21.3 15.3 包与文件 ....................................................................................................... 92
1.21.4 15.4 使用全局表 ................................................................................................... 93
1.21.5 15.5 其他一些技巧(Other Facilities) ............................................................... 94
1.22 第 16 章 面向对象程序设计 .......................................................................................... 96
1.22.1 16.1 类 ................................................................................................................... 97
1.22.2 16.2 继承 ............................................................................................................... 98
1.22.3 16.3 多重继承 ..................................................................................................... 100
1.22.4 16.4 私有性(privacy) ...................................................................................... 101
1.22.5 16.5 Single-Method 的对象实现方法 ................................................................. 103
1.23 第 17 章 Weak 表 .......................................................................................................... 104
1.23.1 17.1 记忆函数 ..................................................................................................... 105
1.23.2 17.2 关联对象属性 ............................................................................................. 107
1.23.3 17.3 重述带有默认值的表 ................................................................................. 107
1.24 第三篇 标准库 .............................................................................................................. 108
1.25 第 18 章 数学库 ............................................................................................................ 108
1.26 第 19 章 Table 库 .......................................................................................................... 109
1.26.1 19.1 数组大小 ..................................................................................................... 109
1.26.2 19.2 插入/删除 .................................................................................................... 110
1.26.3 19.3 排序 ............................................................................................................. 110
1.27 第 20 章 String 库 .......................................................................................................... 111
1.27.1 20.1 模式匹配函数 ............................................................................................. 113
1.27.2 20.2 模式 ............................................................................................................. 114
1.27.3 20.3 捕获(Captures) ....................................................................................... 116
1.27.4 20.4 转换的技巧(Tricks of the Trade) ............................................................ 120
1.28 第 21 章 IO 库 ............................................................................................................... 124
1.28.1 21.1 简单 I/O 模式 .............................................................................................. 124
1.28.2 21.2 完全 I/O 模式 ............................................................................................. 127
1.29 第 22 章 操作系统库 .................................................................................................... 130
1.29.1 22.1 Date 和 Time................................................................................................. 130
1.29.2 22.2 其它的系统调用 ......................................................................................... 132
1.30 第 23 章 Debug 库......................................................................................................... 133
1.30.1 23.1 自省(Introspective) ................................................................................ 133
1.30.2 23.2 Hooks ............................................................................................................ 136
1.30.3 23.3 Profiles .......................................................................................................... 137
1.31 第四篇 C API .................................................................................................................. 138
1.32 第 24 章 C API 纵览 ....................................................................................................... 139
1.32.1 24.1 第一个示例程序 ......................................................................................... 139
1.32.2 24.2 堆栈 ............................................................................................................. 141
1.32.3 24.3 C API 的错误处理 ......................................................................................... 146
1.33 第 25 章 扩展你的程序 ................................................................................................ 147
1.33.1 25.1 表操作 ......................................................................................................... 148
1.33.2 25.2 调用 Lua 函数 ............................................................................................. 151