Not really any other way to do it, create context (i.e. struct, or stack) and have a delegate point to both it and a patch function.

It'll be how partial is implemented.

https://dlang.org/phobos/std_functional.html#.partial
  • Partial function... atzensepp via Digitalmars-d-learn
    • Re: Partial... Christian Köstlin via Digitalmars-d-learn
    • Re: Partial... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Par... atzensepp via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... atzensepp via Digitalmars-d-learn

Reply via email to