ふむふむ. import std.stdio; void main() { // Note: type of "string literal".dup is char[] { // char[] s = "hoge"; // error, invariant(char)[] to char[] char[] s = "hoge".dup; s[0] = 'H'; s = "HOGE".dup; writefln(s); } // Note: type of string literal is invariant(char)[] { invariant(char)[] s = "hoge"; //s[0] = 'H'; // error, not mutable s = "HOGE"; writefln(s); } // Note: alias const(char)[] string; {