How to create a mutable array of strings?

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 17 02:37:55 PDT 2015


On Sunday, 17 May 2015 at 09:20:17 UTC, Dennis Ritchie wrote:
> On Sunday, 17 May 2015 at 09:18:15 UTC, Daniel Kozak wrote:
>> auto s = cast(char[][])["foo", "bar"];
>
> Thanks. This version I was completely satisfied.

So maybe this one would be ok with you too :)

auto s = to!(char[][])(["foo", "bar"]);


More information about the Digitalmars-d-learn mailing list