[dmd-beta] dmd1beta test

Moritz Warning moritz.warning at uni-bielefeld.de
Fri Jan 29 04:41:11 PST 2010


I've successfully compiled Tango with dmd1beta.

But one of my apps don't compile anymore.
Is it a bug?:

uint* getInstance() {
    return new uint;
}

struct Foo {
    uint* x;
}

void main(char[][] args){
    Foo o = {getInstance()};
}
/*
main.d(226): Error: Cannot interpret new uint at compile time
main.d(236): Error: cannot evaluate getInstance() at compile time
*/

-- 
Moritz Warning <moritz.warning at uni-bielefeld.de>


More information about the dmd-beta mailing list