How to pass a member function/delegate into a mixin template?

"岩倉 澪" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 16 09:42:56 PDT 2014


On Monday, 15 September 2014 at 21:37:50 UTC, John Colvin wrote:
> would this work for you? "alias" is the usual way of taking a 
> function as a template parameter.
>
> mixin template EventListener(alias slot)

Ah, thanks for the help! That works great. :)



More information about the Digitalmars-d-learn mailing list