OON: callbacks

From: Paul Beardsley (pab@merl.com)
Date: Fri Oct 17 1997 - 17:05:23 EST


Hello,

Can I get some advice about the cleanest way
to do callbacks in an object-oriented framework.

I'm used to using pointers-to-functions in C.
But, in C++, what about the option of using function
objects to do the callback, is that better
when creating a class which will be handling
callbacks?

And what is the cleanest way to pass a reference
to a callback
from C++ code to a C interface like Numerical
Recipes (or is there a C++ interface for
Num Recipes?) e.g. when invoking a routine like
powell?

Thanks,
Paul.



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:06 EST