红联Linux门户
Linux帮助

Lua 5.3.0(beta)发布

发布时间:2014-10-25 09:16:58来源:红联作者:empast
Lua 5.3.0 (beta) 发布,此版本现已提供测试:http://www.lua.org/work/lua-5.3.0-beta.tar.gz。

MD5 e46b91de3d22a308d3350a14b242e2c7 -
SHA1 0fa2b527611fe3a1b083359ce15e91f27b108eec -

此版本是个 Beta 版本,有一些特性可能会在最终版本修改。此版本最主要的是引入了 integers,同时还引入了 string.pack 和 string.unpack,用来替换和扩展 string.dump 和 string.undump。

主要改进

integers (64-bit by default)

官方支持 small architectures ("Small Lua" with 32-bit numbers)

bitwise 操作符

支持基础 utf-8

其他改进

Language

userdata can have any Lua value as uservalue

integer division

more flexible rules for some metamethods

utf-8 escapes in literal strings

Libraries

basic utf-8 library

ipairs and the table library respect metamethods

functions for packing and unpacking numbers

strip option in string.dump

table library respects metamethods

new function table.copy

new function debug.sizeof

strip option instring.dumpandlua_dump

C API

simpler API for continuation functions in C

new functions:lua_rotate,lua_isyieldable,lua_strtonum,lua_geti,lua_seti

lua_gettable and similar functions return type of resulted value

Lua standalone interpreter

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

arg table available to all code

更多内容请看这里:
http://www.lua.org/work/diffs-lua-5.3.0-alpha-beta.txt

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

共有 0 条评论