On 2012-05-04 16:19, H. S. Teoh wrote:
typeof(&func) fp =&func;And lo and behold, it works!! So it's very stupid, but if you at least have an exemplary function that you'd like to make a function pointer out of, you can use this workaround to name its type. Yeah, I recommend filing a bug for this. The type of&func needs to be nameable without resorting to using typeof(&func), but at least you can use the latter as a temporary workaround until dmd is fixed. :-)
Just use "auto" instead of "typeof". -- /Jacob Carlborg
