红联Linux门户
Linux帮助

Lua 5.3.0正式版发布

发布时间:2015-01-13 09:09:30来源:红联作者:empast
经过 4 个 RC 版本,Lua 终于迎来了 5.3.0 正式版。新版本主要增加对整数支持,支持位操作,提供一个基本的 UTF-8 库。

下载地址:http://www.lua.org/ftp/lua-5.3.0.tar.gz

其他方面的改进包括:

语言特性

userdata can have any Lua value as uservalue

integer division

more flexible rules for some metamethods

库

ipairs and the table library respect metamethods

strip option in string.dump

table library respects metamethods

new function table.move

new function string.pack

new function string.unpack

new function string.packsize

C API

simpler API for continuation functions in C

lua_gettable and similar functions return type of resulted value

strip option in lua_dump

new function: lua_geti

new function: lua_seti

new function: lua_isyieldable

new function: lua_numbertointeger

new function: lua_rotate

new function: lua_stringtonumber

Lua 标准解释器

can be used as calculator; no need to prefix with '='

arg table available to all code

来自:开源中国社区
文章评论

共有 0 条评论