转载

Lua 5.3.0 正式版发布

阿里百川梦想创业大赛,500万创投寻找最赞的APP

经过 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

正文到此结束
Loading...