This won't compile under D2.004 class A { int x; } void main() { const a = new A(); /* Error */ } The error is Error: non-constant expression cast(const A)new A Now what's going on here? Are we not allowed to turn mutables into consts now?