Thread overview
std.string.ifind(char[],char[]): unexpected finds
Apr 04, 2005
Thomas Kuehne
Apr 04, 2005
Derek Parnell
Apr 04, 2005
Ben Hinkle
Apr 04, 2005
Ben Hinkle
April 04, 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

# import std.string;
#
# int main(){
#        assert(find("structures","cvs://")==-1);
#        assert(ifind("structures","cvs://")==-1);
#        return 0;
# }

The second assert fails as does the out-contract in phobos.

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFCUTyw3w+/yD4P9tIRAjwQAJ0f6oBgQjgo9AVGkiCxACvYpbWqtQCgsbX5
tPcBE5HouzCFuHBxyUviGis=
=jkK9
-----END PGP SIGNATURE-----
April 04, 2005
On Mon, 4 Apr 2005 15:10:08 +0200, Thomas Kuehne wrote:

> # import std.string;
> #
> # int main(){
> #        assert(find("structures","cvs://")==-1);
> #        assert(ifind("structures","cvs://")==-1);
> #        return 0;
> # }
> 
> The second assert fails as does the out-contract in phobos.

The 'ifind' function has been broken for ages now. I've given up waiting
for it to be fixed, and I just use a slow workaround (find(tolower(x),
tolower(y)) - nasty stuff really.

-- 
Derek Parnell
Melbourne, Australia
4/04/2005 11:17:59 PM
April 04, 2005
"Derek Parnell" <derek@psych.ward> wrote in message news:12bxvt4xl9wtk.bkkmf7xe4l1c$.dlg@40tude.net...
> On Mon, 4 Apr 2005 15:10:08 +0200, Thomas Kuehne wrote:
>
>> # import std.string;
>> #
>> # int main(){
>> #        assert(find("structures","cvs://")==-1);
>> #        assert(ifind("structures","cvs://")==-1);
>> #        return 0;
>> # }
>>
>> The second assert fails as does the out-contract in phobos.
>
> The 'ifind' function has been broken for ages now. I've given up waiting
> for it to be fixed, and I just use a slow workaround (find(tolower(x),
> tolower(y)) - nasty stuff really.

Has someone sent a fix to Walter? Has anyone debugged the problem? Sometimes Walter loses track of fixes and he might have lost track of this one, assuming someone did send him a patch.


April 04, 2005
Ben Hinkle wrote:

> Has someone sent a fix to Walter? Has anyone debugged the problem? Sometimes Walter loses track of fixes and he might have lost track of this one, assuming someone did send him a patch. 

Some people (me included) naively thought this newsgroup was the place.

D still needs a bug database. (and then some, like Bug Parade or PEP ?)

The only problem with Walter is that there is too few of him... :-)

--anders
April 04, 2005
"Anders F Björklund" <afb@algonet.se> wrote in message news:d2rj75$285k$1@digitaldaemon.com...
> Ben Hinkle wrote:
>
>> Has someone sent a fix to Walter? Has anyone debugged the problem? Sometimes Walter loses track of fixes and he might have lost track of this one, assuming someone did send him a patch.
>
> Some people (me included) naively thought this newsgroup was the place.

That's why I tried to get some process clarification about how to
communicate phobos bug fixes to Walter. Can you repost your fixes and/or
email them to Walter? I think things go best when you
1) make it easy for him and include doc updates if appropriate
2) send him uncontroversial content or send a link to a newsgroup discussion

> D still needs a bug database. (and then some, like Bug Parade or PEP ?)

The wiki for phobos can be a quick-n-dirty bug database. At least that's how I use it for std.stream. http://www.prowiki.org/wiki4d/wiki.cgi?Phobos I notice there isn't much else there bug-wise.

> The only problem with Walter is that there is too few of him... :-)

yup.