DMD 1.031 and 2.015 releases
bearophile
bearophileHUGS at lycos.com
Fri Jun 20 00:11:27 PDT 2008
Walter Bright:
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.031.zip
>
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.015.zip
Versions 1.030 and 1.031 have some problems that don't allow me to compile my code, but it's not easy for me to spot all the compilation-time problems. The first problem that stops the compilation can be reduced to the following, this works in 1.029:
template Foo(T) {
const bool Foo = is(typeof(T.value));
}
void main() {
class Bar { int value; }
assert(!Foo!(typeof( new Bar )));
}
But in 1.030 and 1.031 gives:
Error: this for value needs to be type Bar not type int
Note that is a very reduced (and silly) example, but in my code I am not able to find a workaround yet, so I have to use 1.029 still.
Bye,
bearophile
More information about the Digitalmars-d-announce
mailing list