This is NOT the latest version, which is available at: current

Change picture:

Choose file:

道Dao语言1.0更新概要 (2009年3月6日发布)

新特性:
  1. 任意精度整数类型long(BigInteger);
  2. 一个新的轻量的正则表达式匹配引擎,可以通过一下字符串方法: string.match(), string.submatch(), string.extract(), string.capture(), string.change(), string.pfind();
  3. 字符串正则表达式匹配引擎和大数值数组算术运算的内部并行化(仅适用于Linux);
  4. 带函数接口类型检查的协程,并为此添加了新的关键字yield;
  5. 象Python中那样的函数参数分组,以便允许将作为函数参数的元组的 元素在相应的参数位子展开,即自动地将元组的元素分别作为参数传递; 同样支持函数参数的检查;
  6. 简单的即时编译功能;
  7. 使用local关键字强制申明局部变量;
  8. 使用virtual关键字申明类的虚函数;
  9. 新的列表和数值数组构造语法:{ expr ... count }或[ expr ... count ], 这里表达式expr将被重复求值count次,并将每次求值的结果作为 列表(使用花括号)或数值数组(使用方括号)返回;
  10. 使用<<和>>运算符在列表末尾添加或删除元素;
  11. 打开管道stdio.popen( command : string, mode : string );
  12. 元组作为映射表键值时,依次按元组的每个元素排序;
  13. 使用文件配置虚拟机;
这次发布还包括了很多其他新的小特性,它们能使某些任务更简单, 这里就不一一列出,想知道更多,可参看ChangeLog文件。

重要变动:
  1. 删除了正则表达式的语法支持,现在正则表达式需要通过字符串函数使用; 并且正则表达式的语法也有比较大的变动。
  2. 删除了以支持其他语言代码嵌入的接口,并且放弃了实现嵌入C代码的DaoTCC模块。
其他有一些改动跟道语言的标准库和函数相关,如: stdlib.load(), stdlib.ctime(), stream.read() and string.splitby()等。 还有些比较大的改动跟道语言虚拟机的内部实现有关, 不大影响道语言的语法及其语义。 详情请参看ChangeLog文件。
view count 443 times
created at 2009-09-18, 04:53 GMT

123 4
56 78910 11
121314151617 18
192021222324 25
26272829

fu: ... I forgot to say something about the plan for the whole new year in my previous reply. Well, besides w ... (Jan.19,01:40)

fu: ... Happy new dragon year (which will start from this sunday)! Actually, it was a busy month (I wish th ... (Jan.18,22:46)

ybabel: What's the plan for the new year ? Hello 'vry budy :- ) happy new year (when is the new year for you Fu ?) I saw you come back and comm ... (Jan.18,18:59)

This site is powered by Dao
Copyright (C) 2009,2010, daovm.net.
Webmaster: admin@daovm.net