1.geting start
literal string ""
single charator ''
string that are used as pattern '' eg: '[%w_]'
书本后面又说用“”和‘’都可以,选择一种正确的形式就可以,到底要不要遵循这个规定呢?而且看了例子还是不理解pattern
2.如果Lua代码里有两个函数同名的函数怎么办
eg: % lua -e "print(math.sin(x))"
x = 1
print(math.sin(x))
x = 2
print(math.sin(x))
x在不同区段的值不一样,那到底是输出哪个函数呢?
3.for instance in the use of nil to differentiate a normal return value from an abnormal condition.求具体的例子
4.a Lua number can represent any 32-bit integer without rounding problems整数怎么会出现四舍五入?
5.it is easy to compile Lua so that it uses another type for numbers, such as longs or single-precision floats. This is particularly useful for platforms without hardware support for floating point. 求解释
6.luaconf.h 在哪里?(ubuntu 12.04)
7.Strings in Lua have the usual meaning: a sequence of characters.Lua is eight-bit clean and its strings may contain characters with any numeric code,including embedded zeros. This means that you can store any binary data into a string
8.Moreover, this form ignores the first character of the string
when this character is a newline.
literal string ""
single charator ''
string that are used as pattern '' eg: '[%w_]'
书本后面又说用“”和‘’都可以,选择一种正确的形式就可以,到底要不要遵循这个规定呢?而且看了例子还是不理解pattern
2.如果Lua代码里有两个函数同名的函数怎么办
eg: % lua -e "print(math.sin(x))"
x = 1
print(math.sin(x))
x = 2
print(math.sin(x))
x在不同区段的值不一样,那到底是输出哪个函数呢?
3.for instance in the use of nil to differentiate a normal return value from an abnormal condition.求具体的例子
4.a Lua number can represent any 32-bit integer without rounding problems整数怎么会出现四舍五入?
5.it is easy to compile Lua so that it uses another type for numbers, such as longs or single-precision floats. This is particularly useful for platforms without hardware support for floating point. 求解释
6.luaconf.h 在哪里?(ubuntu 12.04)
7.Strings in Lua have the usual meaning: a sequence of characters.Lua is eight-bit clean and its strings may contain characters with any numeric code,including embedded zeros. This means that you can store any binary data into a string
8.Moreover, this form ignores the first character of the string
when this character is a newline.