Bug in countUntil?

Sönke Ludwig sludwig at outerproduct.org
Sat Oct 13 00:15:31 PDT 2012


Am 10/12/2012 9:27 PM, schrieb monarch_dodra:
> 
> yeah, that's what I thought, but wanted it double checked. I'll take
> care of it then.

Just wanted to mention that this kind of subtle change in behavior can
break a lot of code in non-obvious ways. In any case, the documentation
for countUntil, but more importantly for (last)IndexOf, needs to state
clearly what it does for narrow strings (the countUntil docs at least
imply this by using the term "elements", but an explicit statement can
do no harm).


More information about the Digitalmars-d mailing list