On 12/12/2013 05:16 AM, Manu wrote:
Don does it to bind static functions to delegates in his C++ FastDelegate library. I wonder if there's a helper in phobos? You can be sure when assigning functions to delegates in this way that there will never be any associated state.
std.functional.toDelegate