C++ mutable in D

Michael Galuza riddlermichael at gmail.com
Fri Jul 30 19:17:55 UTC 2021


Is there any analogue of C++ `mutable` in D? As far as I 
understand, this is impossible due to transitive constness, but 
maybe some variation of `Rebindable` will be useful?

P.S. Of course I mean 'fair' mutable, not qualifier-away `cast()`.


More information about the Digitalmars-d mailing list