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

Luajit笔记(2)——FFI库(1)

Posted by nanxiao on 九月 23, 2015 in Luajit笔记 |

Luajit提供的FFI库(ffi.*)允许Lua代码调用外部的C函数和使用C数据结构。但是默认情况下,FFI […]

标签:,

0

Shark代码分析笔记(4)——bpf.lua(未完待续)

Posted by nanxiao on 九月 16, 2015 in Shark代码分析笔记 |

bpf.lua位于bpf文件夹下,其代码如下(省去版权信息): local ffi = require(“ff […]

标签:,

0

*NIX & Hacking —— 第8期

Posted by nanxiao on 九月 7, 2015 in 《*NIX & Hacking》杂志 |

做一本我感兴趣的杂志,就这么简单! C C Programming Substance Guidelines […]

标签:, , , , , , , , , , , ,

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 […]

标签:

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 […]

标签:

Copyright © 2013-2017 我的站点 All rights reserved.
This site is using the Multi Child-Theme, v2.2, on top of
the Parent-Theme Desk Mess Mirrored, v2.5, from BuyNowShop.com