C callbacks?

Stewart Gordon smjg_1998 at yahoo.com
Thu Mar 19 11:33:08 PDT 2009


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

But do check whether you really want an alias (the D equivalent of 
typedef in C) or a typedef (an actual new type in D).

Stewart.


More information about the Digitalmars-d-learn mailing list