Sorry, MY BAD! You can just write auto handler = new Handler; receive(&handler.MyFunc);
Somehow when I tried this before it failed to compile, and I thought I had to go through loops for achieving this.
Sorry, MY BAD! You can just write auto handler = new Handler; receive(&handler.MyFunc);
Somehow when I tried this before it failed to compile, and I thought I had to go through loops for achieving this.