设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

ChaiScript 5.6.0发布,C++脚本语言

2015-1-20 16:46| 发布者: joejoe0332| 查看: 460| 评论: 0|原作者: oschina|来自: oschina

摘要:   ChaiScript 是第一个也是目前唯一一个与C++的兼容性的脚本语言,受 EMCAScript影响的嵌入式的功能性语言。  ChaiScript 5.6.0 发布,Throw exception on integer divide by 0Add optional type specification ...

   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.bz2chaiscript-5.6.0-Linux.debv5.6.0.zip


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部