Re: How to pass function name as a parameter?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Levan Jgarkava (levanikoNoSpam_at_mailru.com)
Date: 05/25/04


Date: Wed, 26 May 2004 01:04:48 +0400

Hi,

> A good example of this might be where you want to pass the "address" of a
> comparison function to a sort class. The sort class might be just
executing
> a sort algorithm (e.g. quicksort) without regard to the data type of the
> objects it's given. However, if those objects Implement an Interface that
> defines a Compare method, then it doesn't have to care.
>
> Does this sound useful? Do you need some sample code?
Yes. I'll be greateful for any additional information/samples/docs...

Thanks.

Best Regards,
      Levan Jgharkava