Lua 5.3.0 正式版發布
Lua 是一個小巧的腳本語言。作者是巴西人。該語言的設計目的是為了嵌入應用程序中,從而為應用程序提供靈活的擴展和定制功能。
Lua腳本可以很容易的被C/C++代碼調用,也可以反過來調用C/C++的函數,這使得Lua在應用程序中可以被廣泛應用。不僅僅作為擴展腳本,也可以作為普通的配置文件,代替XML,Ini等文件格式,并且更容易理解和維護。
Lua由標準C編寫而成,代碼簡潔優美,幾乎在所有操作系統和平臺上都可以編譯,運行。
一個完整的Lua解釋器不過200k,在目前所有腳本引擎中,Lua的速度是最快的。這一切都決定了Lua是作為嵌入式腳本的最佳選擇。
下載地址: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
庫
-
ipairsand the table library respect metamethods
-
strip option instring.dump
-
table library respects metamethods
-
new functiontable.move
-
new functionstring.pack
-
new functionstring.unpack
-
new functionstring.packsize
C API
-
simpler API for continuation functions in C
-
lua_gettableand similar functions return type of resulted value
-
strip option inlua_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 '='
-
argtable available to all code