I have a property that accepts a delegate: http.onReceiveHeader = (in char\[\] key, in char\[\] value) { }. I want to use a separed function instead of, e.g:
void do_something(char[] key, char[] value)
{
}
http.onReceiveHeader = do_something;
it’s possible do it in D?
There is a
toDelegatefunction instd.functional.So this should work: