http://digitalmars.com/d/2.0/arrays.html says (...), and a string literal can be implicitly cast to a char* char* a = "a"; // cannot implicitly convert expression "a" of type string to char* char* b = cast(char*)"a"; // ok const(char)* c = "a"; // ok
Commit pushed to https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/f7c94aa84c0e16a079f80861ad63b1dd8d63f9e4 fix Issue 5820 - Documentation states string literals can implicitly convert to char*
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル