How to partially apply member functions?

ct via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 29 06:01:10 PDT 2017


I was only able to do it this way:

     auto on_next_previous = &this.OnNextPreviousMatch;
     entry_.addOnNextMatch(&partial!(on_next_previous, true));
     entry_.addOnPreviousMatch(&partial!(on_next_previous, false));


More information about the Digitalmars-d-learn mailing list