Yeah. String literals should definitely be immutable rvalues,
consider this though: auto a = "hello"; a = "new"; If is("hello" == immutable(char[])), then a would be too, and the rebinding would fail. That'd be annoying.
Yeah. String literals should definitely be immutable rvalues,
consider this though: auto a = "hello"; a = "new"; If is("hello" == immutable(char[])), then a would be too, and the rebinding would fail. That'd be annoying.