Head Const

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 19 15:01:11 PST 2016


On 02/19/2016 05:04 PM, Chris Wright wrote:
> In other words, it works fine if you have a ref-counted string. It works
> fine if you have a ref-counted list of ref-counted strings. But that list
> *must*  be mutable.

Much simpler - direct membership. The first thing people want to do when 
you give them a type T is to put it as a member in a struct or class. 
Then they want to make that struct/class immutable. And they can't.

Andrei


More information about the Digitalmars-d mailing list