mutable keyword

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 21 10:15:16 PDT 2016


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.



More information about the Digitalmars-d-learn mailing list