Store mutable indirections in immutable data with this one weird trick!

zjh fqbqrr at 163.com
Sat Nov 13 07:02:16 UTC 2021


On Saturday, 13 November 2021 at 06:50:48 UTC, Paul Backus wrote:
> - Add a `__mutable` qualifier that functions as a "back door" 
> to `immutable` and `const`.

This technique is worth utilizing.
The `pointer` remains immutable and the `pointee data` is mutable.





More information about the Digitalmars-d mailing list