On Feb 23, 2009, at 11:42 PM, Anatoly A. Kazantsev wrote: > On Mon, 23 Feb 2009 23:24:32 -0800 > Robert Bradshaw <[email protected]> wrote: > >> Pointers are the only way to pass around functions in C. Pointers >> aren't bad, they're just powerful and potentially unforgiving. > > Yeah, I know. But what to do in a case when there's no such > 'cookie' pointer in > callback-function definition.
It's standard practice to have such void* arguments for callback functions. Otherwise you'd have to store something globally and not use two concurrently (which is obviously not ideal). - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
