On Monday, 28 March 2016 at 04:12:56 UTC, Rikki Cattermole wrote:
Do you need it to use extern(C)? Because if you don't, just drop that. D's mangling will fix it.
Yes, I do need extern(C) for some reason like: alias Hook = extern(C) void function(); void sethook(Hook func) { ... } ... sethook(&foo) ... Some function expects such a function as an argument. Aki.