0

Lua笔记(24)—— tonumber和tostring

Posted by nanxiao on 十月 13, 2015 in Lua笔记 |

尽管Lua会提供数字和字符串之间的自动转换: > print(“10” + 30) 40 > pr […]

标签:

0

Lua笔记(23)—— pairs和ipairs

Posted by nanxiao on 九月 29, 2015 in Lua笔记 |

在这篇帖子中,提到pairs和ipairs的区别: pairs() returns an iterator t […]

标签:

0

Lua笔记(22)—— error和assert

Posted by nanxiao on 八月 28, 2015 in Lua笔记 |

Lua中的error函数定义: error (message [, level]) 打印出message后,会 […]

标签:

0

Lua笔记(21)—— “require module”的等价形式

Posted by nanxiao on 八月 27, 2015 in Lua笔记 |

在Learn Lua in 15 Minutes中提到,require module的等价形式: — Ano […]

标签:

0

Lua笔记(20)—— 编译

Posted by nanxiao on 八月 27, 2015 in Lua笔记 |

loadfile和dofile都会从文件中加载chunk。loadfile只编译这段chunk,并且把编译好的 […]

4

Lua笔记(19)—— 表达式(expression)和语句(statement)

Posted by nanxiao on 八月 27, 2015 in Lua笔记 |

Lua中的表达式(expression)定义: Expressions denote values. Expr […]

标签:

0

Lua笔记(18)—— 解释器的交互模式

Posted by nanxiao on 八月 26, 2015 in Lua笔记 |

Lua自带解释器(Lua.c编译生成的可执行文件)的交互模式会把每一单独的输入行看做是一个chunk,除非这一 […]

标签:

0

Lua笔记(17)—— 什么是chunk?

Posted by nanxiao on 八月 26, 2015 in Lua笔记 |

在Pil中,chunk的定义: Each piece of code that Lua executes, s […]

标签:

0

Lua笔记(16)——全局变量和“local”变量

Posted by nanxiao on 八月 26, 2015 in Lua笔记 |

执行以下Lua代码: i = 32 local i = 0 f = load(“i = i + 1; prin […]

标签:

0

Lua笔记(15)—— “Lua Closures and Iterators”读书笔记

Posted by nanxiao on 八月 24, 2015 in Lua笔记 |

这篇是Lua Closures and Iterators的读书笔记: (1)Closure有以下属性: a) […]

标签:

Copyright © 2013-2017 我的站点 All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.