05.09.2019 14:17, berni пишет:
But why do you try to modify immutable data? What is your point? Could you describe you use case?Point[long] q;q[1] = Point(3);Leads to:test.d(7): Error: cannot modify struct q[1L] Point with immutable members
drug via Digitalmars-d-learn Thu, 05 Sep 2019 04:26:32 -0700
05.09.2019 14:17, berni пишет:
But why do you try to modify immutable data? What is your point? Could you describe you use case?Point[long] q;q[1] = Point(3);Leads to:test.d(7): Error: cannot modify struct q[1L] Point with immutable members