getting rid of immutable (or const)

drug drug2004 at bk.ru
Thu Sep 5 11:22:15 UTC 2019


05.09.2019 14:17, berni пишет:
>> Point[long] q;
>>
>> q[1] = Point(3);
> 
> Leads to:
> 
>> test.d(7): Error: cannot modify struct q[1L] Point with immutable members
> 
> 
But why do you try to modify immutable data? What is your point? Could 
you describe you use case?


More information about the Digitalmars-d-learn mailing list