Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: "Bill Butler" <qwerty@xxxxxxxx>
- Date: Sat, 28 Jan 2006 01:10:17 GMT
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:1138358236.480665.319060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> (Bill: the algorithm has been tweaked. I don't believe it was tweaked
> specifically to get around this flaw, but it's the kind of flaw which
> is quite data-sensitive; depending on the data given, 2.0 either
> notices the problem or happens to get the result right.)
I don't mean that the algorithm was tweaked to fix this problem, but rather a slight optimization
accidentally fixed a broken IComparer. Similar to the standard C++ idiom to prevent self assignment.
I can explain what I mean more fully, but I am still being semi-cryptic.
Bill
.
- References:
- interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Wiktor Zychla [C# MVP]
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Jon Skeet [C# MVP]
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Wiktor Zychla [C# MVP]
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Jon Skeet [C# MVP]
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Chris S.
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Jon Skeet [C# MVP]
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Bill Butler
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Chris S.
- Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- From: Jon Skeet [C# MVP]
- interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- Prev by Date: Re: ~Simple number problem
- Next by Date: Re: ~Simple number problem
- Previous by thread: Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- Next by thread: Re: interesting task for .NET learners: why ArrayList.Sort hangs? [.NET 1.1]
- Index(es):
Relevant Pages
|