DMD 1.011 发布
oldrev
2007-04-11
http://www.digitalmars.com/d/changelog.html
What's New for D 1.011 Apr 11, 2007 New/Changed Features * Extended Codeview symbolic debug output with LF_OEM types. * Extended Dwarf symbolic debug output with DW_TAG_darray_type, DW_TAG_aarray_type, and DW_TAG_delegate types. * Added keywords ref and macro. * final classes cannot be subclassed. * final for variables now works. * ref now works as a replacement for inout. * Fixed so multiple type inferring declarations like auto a=1,c=2; works. Bugs Fixed * Fixed problem with overloading of function templates that have the same template parameter list, but different function parameters. * Fixed problems with type deduction from specializations that are template instances. * Fixed assert template.c(2956) s->parent * Got .property to work for typeof. * Fixed bug in DW_AT_comp_dir output for some linux versions. * D.announce/8027 * D.announce/8047 * D/51800 * Bugzilla 1028: Segfault using tuple inside asm code. * Bugzilla 1052: DMD 1.009 - aliasing functions from superclasses may result in incorrect conflicts * Bugzilla 1080: Failed to link to std.windows.registry * Bugzilla 1081: with using real and -O option, dmd generate bug code * Bugzilla 1082: The .offsetof property yields a signed int, a size_t would be more appropriate * Bugzilla 1086: CodeView: missing line information for string switch * Bugzilla 1092: compiler crash in ..\ztc\cod1.c 2528 * Bugzilla 1102: switch case couldn't contain template member * Bugzilla 1108: Indexing an int[] not evaluatable at compile time * Bugzilla 1122: dmd generate bad line number while reporting error message |
|
oldrev
2007-04-11
难道传说中的 AST macro 实现了!!????
如果是真的,D把 C++ 甩开了 20年啊 |
|
oldrev
2007-04-11
> final for variables now works.
这个应该就是火星新闻组里疯狂讨论的 const 了 |
|
qiezi
2007-04-11
oldrev 写道 难道传说中的 AST macro 实现了!!????
如果是真的,D把 C++ 甩开了 20年啊 现在只有个关键字,好像还不可用。D关键字稍多了些,老是想好一个变量名,已经被它用了。。 |
|
oldrev
2007-04-11
就是,找了半天没文档
|
|
oldrev
2007-04-11
找到了 Walter 关于 final 关键字的解释:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=8164 It's the first part of the final/const/invariant thing. No documentation is written on it yet. All final is is that if you declare a variable as final, you can only initialize it. It cannot be reassigned. |
|
oldrev
2007-04-11
追 D 跟追刘德华有一比啊
|
|
qiezi
2007-04-11
这应该和java里面的final差不多吧
|
|
tomqyp
2007-04-11
ref感觉还没有inout看首容易理解
|
|
soulmachine
2007-04-12
我一直没弄明白in,out,inout的区别,干脆不用。这个ref代替了inout,那么in,out还有用武之地吗?有人可以给个示例代码否?
|