From the D Blog: A Pattern for Head-mutable Structures

FeepingCreature feepingcreature at gmail.com
Thu Jun 25 12:25:58 UTC 2020


On Thursday, 25 June 2020 at 11:55:14 UTC, Mike Parker wrote:
> Simen Kjærås outlines an approach to supporting head-mutable 
> types in D without the need for compiler or language changes.
>
> The blog:
> https://dlang.org/blog/2020/06/25/a-pattern-for-head-mutable-structures/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/hfkq5e/a_pattern_for_headmutable_structures_in_d/
>
> I've also submitted it to HN (please use the search box):
>
> https://news.ycombinator.com/newest

What about immutable structs? There is no possible head-mutable 
type for them.

Deprecate?


More information about the Digitalmars-d-announce mailing list