Negative index range violation
SrMordred
patric.dexheimer at gmail.com
Thu Feb 22 00:13:43 UTC 2018
string x = "123";
auto c = x.ptr;
c++;
writeln(c[-1]); // 1
writeln(c[-1..0]); //BOOM Range violation
Can I do this / Bug / some mistake ?
More information about the Digitalmars-d-learn
mailing list