[新闻] dmd 1.056 和2.040发布

yntcsb 2010-01-30

New versions of the DMD compiler have been pushed out: 1.055 and 2.040. Both versions sport a number of new features and bugfixes, including new toys to play with in CTFE. This is the first release to take advantage of the new beta mailing list, which you may want to look into joining if you haven't already.

 

Version D 1.056 Jan 29, 2010

New/Changed Features

  • Clarification: function returns are not lvalues
  • Add -map command line switch
  • Delegates and function pointers may be used in CTFE
  • Delegate literals and function literals may be used in CTFE
  • Lazy function parameters may now be used in CTFE
  • Slicing of char[] arrays may now be used in CTFE

Bugs Fixed

  • Bugzilla 48: Internal error: cgreg 784
  • Bugzilla 1298: CTFE: tuple foreach bugs
  • Bugzilla 1790: CTFE: foreach(Tuple) won't compile if Tuple contains string
  • Bugzilla 2101: CTFE: Please may I use mutable arrays at compile time?
  • Partial fix for Bugzilla 3569, stops the stack overflow
  • Bugzilla 3663: struct forward reference regresssion
  • Bugzilla 3664: struct forward declaration causes enum to conflict with itself
  • Bugzilla 3668: foreach over typedef'd array crashes dmd
  • Bugzilla 3674: forward reference error with multiple overloads with same name
  • Bugzilla 3685: Regression(D1 only): DMD silently exits on valid code
  • Bugzilla 3687: Array operation "slice times scalar" tramples over memory
  • Bugzilla 3719: forward references can cause out-of-memory error
  • Bugzilla 3723: Regression: forward referenced enum
  • Bugzilla 3724: bug in Expression::arraySyntaxCopy (null pointer dereference on struct->union->struct)
  • Bugzilla 3726: Regression: ICE(mangle.c 81): struct forward reference with static this
  • Bugzilla 3740: Regression: class with fwd reference of a nested struct breaks abstract

 

Version D 2.040 Jan 29, 2010

New/Changed Features

  • Clarification: function returns are not lvalues
  • Added shared static constructors/destructors, regular static constructors/destructors now deal with TLS
  • Add -map command line switch
  • Add @disable attribute
  • Delegates and function pointers may be used in CTFE
  • Delegate literals and function literals may be used in CTFE
  • Lazy function parameters may now be used in CTFE
  • Slicing of char[] arrays may now be used in CTFE
  • added static/final function implementations to interfaces
  • added getOverloads, identifier, and isStaticFunction traits.
  • ModuleInfo changed from class to struct
  • Bugzilla 3556: version(CTFE)
  • Bugzilla 3728: getOverloads and identifier traits

Bugs Fixed

  • Added TLS support for OSX
  • Bugzilla 47: Internal error: cg87 3316
  • Bugzilla 1298: CTFE: tuple foreach bugs
  • Bugzilla 1790: CTFE: foreach(Tuple) won't compile if Tuple contains string
  • Bugzilla 2101: CTFE: Please may I use mutable arrays at compile time?
  • Bugzilla 2066: to!(string)(int) into CTFE-compatible
  • Bugzilla 3488: Segfault(expression.c): enum declared with struct static initializer
  • Bugzilla 3535: struct constructors don't work in CTFE
  • Bugzilla 3552: ICE(mtype.c): declaring a variable called 'AssociativeArray' then using an AA.
  • Partial fix for Bugzilla 3569, stops the stack overflow
  • Bugzilla 3600: template instantiation with empty tuple
  • Bugzilla 3660: Templates and shared functions don't mix
  • Bugzilla 3668: foreach over typedef'd array crashes dmd
  • Bugzilla 3671: x^^3 gives wrong result when x is a floating-point literal
  • Bugzilla 3674: forward reference error with multiple overloads with same name
  • Bugzilla 3675: Regression: Struct literals cannot be initialized with another struct literal
  • Bugzilla 3687: Array operation "slice times scalar" tramples over memory
  • Bugzilla 3719: forward references can cause out-of-memory error
  • Bugzilla 3723: Regression: forward referenced enum
  • Bugzilla 3724: bug in Expression::arraySyntaxCopy (null pointer dereference on struct->union->struct)
  • Bugzilla 3726: Regression: ICE(mangle.c 81): struct forward reference with static this
  • Bugzilla 3727: lots of "deffering SomeStructName" messages when compiling
  • Bugzilla 3734: [patch] src/traits.c does not compile with gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
  • Bugzilla 3740: Regression: class with fwd reference of a nested struct breaks abstract
hqs7636 2010-01-30
d2又强大了很多
wangox 2010-01-31
快稳定了。。。。。。
tomqyp 2010-01-31
这个CTFE是什么呢?
hqs7636 2010-01-31
库改造大概又开始了:
std.string will get the boot
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=105395

CTFE:编译时函数执行吧,我都说累了
hqs7636 2010-01-31
当调用的函数没有参数时可以省略括号,这好不好?

ng上好像特热烈,是不是吃饱了。。。
zsxxsz 2010-02-01
D语言最近确实太沉闷了,库的改造似乎是有点慢,不知tango如何了,呵呵
ideage 2010-02-05
D2 好了,但大家基本被D1折磨惨了.
wangox 2010-02-05
期待稳定的D2
wangox 2010-02-05
最近圈子人气不旺
Global site tag (gtag.js) - Google Analytics