Squirrel 3.0.3 稳定版发布,主要改进记录:
- Improved error messages for _cmp(when a non-integer value is returned).
- A class.newmember() built in method.
- A class.rawnewmember() built-in method.
- Adds sq_rawnewmember(), sq_getversion(), sq_typeof(), sq_getclosurename(), and file.close() in stdlib.
- The closure.getinfos() built-in method is documented.
另外还修复了一些小 bug。
Squirrel 是一种高层次势在必行/面向对象编程语言,设计是一个强大的脚本工具,适合的大小,内存带宽,实时性要求的应用,如游戏。
示例代码
local table = {
a = "10"
subtable = {
array = [1,2,3]
},
[10 + 123] = "expression index"
}
local array=[ 1, 2, 3, { a = 10, b = "string" } ];
foreach(i,val in array)
{
::print("the type of val is"+typeof val);
}
暂无更多评论