On Thursday, 29 May 2014 at 10:41:59 UTC, Kagamin wrote:
On Wednesday, 28 May 2014 at 05:40:26 UTC, Jesse Phillips wrote:When he explained why C++ inferred a const int type as int, he tripped me up because D does drop const for value types.Hmm, this bit me (doesn't compile): void f(in char[] s) { auto s1=s; s1=s; }
I suppose at this point you know:
void f(const(char)[] s);
I understanding that expected may not be the same as simple. But
you did ask for s1 to be const then tried to modify it.
