rationale for function and delegate

Daniel Murphy yebblies at nospamgmail.com
Sun Oct 17 02:15:48 PDT 2010


"Juanjo Alvarez" <fake at fakeemail.com> wrote in message 
news:almarsoft.3733950694952420550 at news.digitalmars.com...
> Sorry for asking here something that should go to D.learn, but how do you 
> do the reverse, that is, getting a function from a delegate? I need that 
> in my project so I can pass it to signal so some Unix signal will trigger 
> a method of an already instantiated object.

I wrote some code a while back that lets you forward a windows callback to 
any delegate.  It might be a good starting point for what you want.

http://yebblies.com/thunk.d 




More information about the Digitalmars-d mailing list