Rebooting the __metada/__mutable discussion

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Fri Apr 8 13:50:01 UTC 2022


On Wednesday, 6 April 2022 at 09:41:52 UTC, RazvanN wrote:
> ...
It may be a dumb and already discussed question, but what's the 
problem of making rc counted structs mutable only?

In this way, you won't have the dilemma of circumventing the 
immutable/const system, to just increment the counter, or any 
metadata.

Note: the payload of rc struct, may be const or immutable if 
needed.

Best regards,
Alexandru.



More information about the Digitalmars-d mailing list