On Friday, 20 May 2016 at 20:46:18 UTC, Jonathan M Davis wrote:
Casting away const and mutating is undefined behavior in D. No D program should ever do it.Really? Mutating immutable is UB too, but look at std.typecons.Rebindable.
On Friday, 20 May 2016 at 20:46:18 UTC, Jonathan M Davis wrote:
Casting away const and mutating is undefined behavior in D. No D program should ever do it.Really? Mutating immutable is UB too, but look at std.typecons.Rebindable.