How to create a mutable array of strings?

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 17 02:16:50 PDT 2015


On Sunday, 17 May 2015 at 09:10:06 UTC, Dennis Ritchie wrote:
> It's uncomfortable:
> -----
> char[][] s = [['f', 'o', 'o'], ['b', 'a', 'r']];
> s[1][1] = 't';
auto s = ["foo".dup, "bar".dup];
s[1][1] = 't';




More information about the Digitalmars-d-learn mailing list