On Saturday, 9 November 2019 at 12:44:20 UTC, W.Boeke wrote:
What should be the right way to accomplish this?
Put an ampersand before the function to get its address:
signal.signal(SIGWINCH,cast(void function(int)) &set_winch);
In C you can omit the & when taking a function address, but when you do that in D it tries to call the function and cast the return value of the function instead.