On Saturday, 1 June 2013 at 20:23:23 UTC, Luís Marques wrote:
So is having an "in char[]" the same as having an immutable(char)[] / string?

Almost. in basically means const, so it can take strings or char[].

void foo(string s);
void foo2(in char s);

char[] a;
string b;
foo(a); // not allowed
foo(b); // allowed

foo2(a); // allowed
foo2(b); // also allowed

Reply via email to