Karen Atkocius (katk at attbi dot com) wrote:
> I likely have bugs in some my code because it... VB or not that is just
> plain counter intuitive and well ... wrong!
I wonder about your intuition ... If a string, any string, doesn't
contain the empty string at every position (which is perfectly intuitive
to me), then what does? Does the empty string contain the empty string?
If it does, then ("" + "abc") or ("abc" + "") must contain the empty
string as well, because it can't possibly vanish when you add something
to the string. So, to uphold your intuition, you would have to claim that
"" doesn't contain "".
> If you need to return somethinmg besides o, (which I don;y want) it should
> be start - 1 - which would be consitant with not having a start parameter...
But that's what it does -- it returns start (i.e. 1 if no start parameter
was specified).
- Michael
Michael J. Hussmann
E-mail: michael at michael-hussmann dot de
WWW: http://michael-hussmann.de
|