发布于 2015-01-18 01:31:28 | 290 次阅读 | 评论: 0 | 来源: 网友投递
ChaiScript C++兼容性脚本语言
ChaiScript 是第一个也是目前唯一一个与C++的兼容性的脚本语言,受 EMCAScript影响的嵌入式的功能性语言。
ChaiScript 是第一个也是目前唯一一个与C++的兼容性的脚本语言,受 EMCAScript影响的嵌入式的功能性语言。
ChaiScript 5.6.0 发布,
Throw exception on integer divide by 0
Add optional type specification to function declarations
def func(int i, j, double k) {
// i must be an int.
// j can be anything
// k must be a double
// normal conversion rules still apply
}
Many minor fixes for compiler warnings
支持 std::future and std::async
var f := async(someFunction); var f2 := async(someFunction2); // someFunction and someFunction2 are running in parallel now f.get(); f2.get();
Fully support r-value returns, supporting move-only objects and reducing object copies
此版本现已提供下载:chaiscript-5.6.0-Darwin.tar.bz2,chaiscript-5.6.0-Linux.deb,v5.6.0.zip。