DMD 1.025 and 2.009 releases
"のしいか (noshiika)"
noshiika at gmail.com
Tue Jan 1 09:23:50 PST 2008
Walter Bright wrote:
> New const/invariant/enum in 2.009!
>
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.025.zip
>
> http://www.digitalmars.com/d/changelog.html
> http://ftp.digitalmars.com/dmd.2.009.zip
Happy new year, Walter!
This update caused a massive breakage to my program and I don't have any
idea how to observe the new const/invariant rules.
Codes using const class or struct are broken:
--------------------------------------------
import std.conv, std.stdio;
class C {
private int i;
this(int i) { this.i = i; }
const string toString() { return to!(string)(this.i); }
}
void main() {
const(C) c;
c = new C(1); // error
writeln(c);
}
--------------------------------------------
Please help me upgrade to 2.009!
Thank you.
More information about the Digitalmars-d-announce
mailing list