realbasic-betas.mbox
[Top] [All Lists]

Re: REALbasic 4.5.1fc1 Now Available

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: REALbasic 4.5.1fc1 Now Available
From: "Michael J. Hußmann" <michael at michael-hussmann dot de>
Date: Thu, 1 Aug 2002 01:04:48 +0200
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



<Prev in Thread] Current Thread [Next in Thread>