I want to have a mutable reference to a const object. So that I can reasign the reference but can not modifiy the object. Is this possible in D 2.0? I found tailconst in the const FAQ but as it is not implemented in D 2.0 I'm clueless how to realize this.
For pointers: const(int)* c = new int(); c = new int(); // reassign For references: import std.typecons; Rebindable!(Object) o = new Object(); o = new Object();
