How to create a mutable array of strings?

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 17 02:06:38 PDT 2015


Hi,
It seems to me, or D do not create mutable array of strings?

How to create a mutable equivalent of a string array?

-----
string[] s = ["foo", "bar"];
// s[1][1] = 't'; // immutable expression s[1][1]


More information about the Digitalmars-d-learn mailing list