char[][] to std::vector<std::string> - DIP or dmd-issue?

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 13 11:04:19 PDT 2015


On Saturday, 13 June 2015 at 17:37:31 UTC, anonymous wrote:
> Please show how it is not. Seems to work just fine.

OK. Still, this method works:

char[][][][][][] strArr = [[[[["foo", "baz"], ["bar", 
"tor"]]]].to!(char[][][][][])];

But I don't want to write this `.to!(char[][][][][])`.

On Saturday, 13 June 2015 at 17:37:31 UTC, anonymous wrote:
> Your definitions of "something like that" and "other ways" are 
> unreasonably narrow, in my opinion. Typing out ".dup" is D's 
> way to do mutable strings. You just don't like it.

Yes, I don't like it.


More information about the Digitalmars-d-learn mailing list