Question about mutable arrays

A Bothe info at alexanderbothe.com
Thu Nov 19 06:16:16 PST 2009


Hey guys,
I've found a problem that occurred since DMD 2.034:

When I've created a dynamic array like
string[] a;

and I want to assign something via the index of this array
a[0]="Test";

DMD says the array isn't mutable...even if these are normal types like int or char.

Does anybody knows how to solve this problem?

Thank in advance


More information about the Digitalmars-d-learn mailing list