Re: CallByAddress

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Alexander Mueller <millerax@xxxxxxxxxxx> wrote:

I know it's much easier if the class i want to sort implements a certain
interface e.g for comparing an item with another item of the same class
and returning an negative int, 0 or a positive int.
But this implies that the sorted class has to implement this interface.

I'm jumping in late, so I might be missing something, but can't you do
this with Events? I have a very old class at
http://www.scottandmichelle.net/scott/code/code-039.html
That implements a simple class to sort a collection. It's possible to
provide this class with a collection and have an Event handle the
comparison of the items in the calling class.

--
Scott Seligman [MSFT]
This posting is provided AS IS with no warranties, and confers
no rights.
.



Relevant Pages

  • Re: CallByAddress
    ... and returning an negative int, ... But this implies that the sorted class has to implement this interface. ... I wold prefer a solution to sort a collection without having to change ... Make a generic sorting class, ...
    (microsoft.public.vb.winapi)
  • Re: implementing roles in OOP......
    ... everything should be driven by abstracting the problem ... my draft interfaces define what sort of thing I would ... All I need is the Composite relationships to navigate, ... IEnumerator is an interface defined by my environment, we can put, ...
    (comp.object)
  • Re: Error Testing
    ... "I've been Googling for websites explaining this sort of stats, ... using Fisher's Exact Test. ... data of this sort (binomial, comparing two fractions, etc.) has a long ...
    (sci.stat.edu)
  • Re: Error Testing
    ... "I've been Googling for websites explaining this sort of stats, ... using Fisher's Exact Test. ... data of this sort (binomial, comparing two fractions, etc.) has a long ...
    (sci.stat.edu)
  • Re: LW9 running FIXED. hub problem found (i think)
    ... Well, this was all good news, sort of LOL ... I know its capable of some REALLY cool imagery, but why such an utterly goddam amateur interface? ... As for this part, I had to bust out laughing, as this was just too funny LOL ... I was able to start creating cool and FUN scenes pretty much right out of the shoot! ...
    (comp.graphics.apps.lightwave)