On Monday, 2 September 2024 at 11:56:10 UTC, Nick Treleaven wrote:
    test.update("hello", () => noreturn.init, (ref int x) {
        x++;
    });

Sorry, that aborts if the key isn't present. `update` requires the first callback to provide a value for the key, and it can't return void.
  • Re: Associative ... Paul Backus via Digitalmars-d-learn
    • Re: Associa... ryuukk_ via Digitalmars-d-learn
      • Re: Ass... ryuukk_ via Digitalmars-d-learn
        • Re:... Lance Bachmeier via Digitalmars-d-learn
          • ... ryuukk_ via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... Nick Treleaven via Digitalmars-d-learn
          • ... Nick Treleaven via Digitalmars-d-learn
          • ... Nick Treleaven via Digitalmars-d-learn
    • Re: Associa... kdevel via Digitalmars-d-learn
      • Re: Ass... Paul Backus via Digitalmars-d-learn
        • Re:... ryuukk_ via Digitalmars-d-learn
          • ... evilrat via Digitalmars-d-learn

Reply via email to