funny behavior of ".."

seany via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 8 08:17:23 PDT 2014


The .., range operator, when used like this :

string a = "abcd";
string b = a[0 .. a.count()-1];

sets b to "abc". is this the expected behavior?



More information about the Digitalmars-d-learn mailing list