getting rid of immutable (or const)

berni someone at
Thu Sep 5 11:17:52 UTC 2019

On Thursday, 5 September 2019 at 10:47:56 UTC, Simen Kjærås wrote:

Yeah, that worked. Thanks. :-)

> Don't worry about asking questions

OK. Then here's the next one:

> Point[long] q;
> q[1] = Point(3);

Leads to:

>test.d(7): Error: cannot modify struct q[1L] Point with 
>immutable members

More information about the Digitalmars-d-learn mailing list