This is in response to bug 2082 (and 2083, filed by accident, sorry). Since transparent assigning between string and char won't work, it would be good to update the docs to be clear about this. First, there should be language on this page saying that the string type is invariant(char[]). Next, it would be good to give examples of going between the two, since this is going to happen relatively often in string handling code if people use the string type. Some suggestions (adding on to what's there): char[] str1 = "abc"; // error, "abc" is not mutable char[] str2 = "abc".dup; // ok, make mutable copy invariant(char)[] str3 = "abc"; // ok string s1 = "abc"; // ok string s2 = str1; // error, s2 is not mutable string s3 = str1.idup; // ok, make invariant copy Another suggestion I'd like to see is to have strings at least mentioned on the types page. Even though they are really arrays, I suspect newcomers (speaking from experience) will look to the types page first to find strings. If there was a mention of strings with a link to the appropriate spot on the arrays page, I think it would ease the transition period for new developers. One other related thought - this page might not be the right place for it, but it might be nice to have an analogy drawn to Java. D string is similar to Java String and D char[] is somewhat similar to Java StringBuffer in terms of how they might be used.
Fixed dmd 1.030 and 2.014
dlang/dub pull request #2087 "Fix #2086 copyFiles in subPackage does not honour targetPath." was merged into master: - d9ef71bccead54949cc83bdbde3a8b00ac87cc88 by Bastiaan Veelo: Fix issue #2086: Copy files of sub packages to the target path. https://github.com/dlang/dub/pull/2087
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル