C callbacks?

Chris Andrews CodexArcanum at gmail.com
Thu Mar 19 14:17:56 PDT 2009

BCS Wrote:
> in D the more normal way to write that would be:
> typedef bool function(bsp_t* node, void* userData) TCOD_bsp_callback_t;

Ahh! Thanks a ton, that seems to work like I needed.  

> C code and delegates are incomparable but C and function pointers are not.

I must have been misreading that bit then, thanks for clarifying.  Listeners/Delegates have always confused me, I really need to do some tutorials and try to understand them better. 

More information about the Digitalmars-d-learn mailing list